Code Monkey home page Code Monkey logo

ayrshare_flutter's Introduction

Ayrshare Flutter

Integrate Social Media APIs Into Your Platform

Powerful Social Media APIs that enable you to send social media posts effortlessly. For developers and businesses of all sizes.

Supports Facebook, Twitter, Instagram, LinkedIn, Reddit, Telegram, TikTok, Google Business Profile (formerly Google My Business), Pinterest, and YouTube.

No need for your own developer accounts at any social media networks.

Features

See the Ayrshare docs for the full details and parameters for each endpoint.

  • The examples we list only show the basic usage.
  • Each endpoint has more advanced capabilities that you can send in the body of the request for more advanced capabilities
  1. Post to 10 social network. Send posts real time or schedule for a future date and time.
  2. Get analytics on shortened links, post data like shares, likes, shares, and impressions, and account data like followers, and subscribers.
  3. Get a history of all posts and their current status in descending order.
  4. Upload and store images and videos. Returns a URL referencing the image. Great for those who do not have their own media hosting service.
  5. Get and send comments on a post.
  6. Shorten a URL and return the shortened URL. Track clicks.
  7. Add a new RSS or Substack feed to auto post all new articles.
  8. Create and manage multiple users with the Business Plan. Post to their social account.
  9. Webhooks allows you to be notified when certain system actions occur via a call to a URL you provide.

Get Started

  1. Get started with a free plan or paid plan, or if you have a platform or manage multiple users check out the Business Plan.
  2. Log in to your Ayrshare account, link some social networks, get your API key, and start posting.

Usage Example of Posting

This sample app creates a button which calls the post function. It posts a random quote and a random image to the linked Twitter and Facebook accounts. It prints the response which includes the URLs for the live posts on the social networks.

import 'package:flutter/material.dart';
import 'ayrshare_flutter.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: PostingPage(),
    );
  }
}

class PostingPage extends StatelessWidget {
  ///TODO get your API key by signing up at ayrshare.com
  final apiKey = '###-###-###-###'; 

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      // appBar: null,
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              await post(
                apiKey: apiKey,
                body: {
                  'randomPost': true,
                  'platforms': ['twitter', 'facebook'],
                  'randomMediaUrl': true
                },
              ).then((value) => print(value));
            },
            child: const Text('Post To Social'),
          ),
        ));
  }
}

Additional information


One minute intro YouTube video:
HTML tutorial

Ayrshare is the Social Media API company. Thousands of businesses have sent millions of social posts via Ayrshare. The world’s largest enterprises and the most ambitious startups use Ayrshare to manage all their users’ social accounts, grow their revenue, and accelerate new business opportunities. Learn more at ayrshare.com.

For support, please contact [email protected]

ayrshare_flutter's People

Contributors

bm888 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.