ayrshare_flutter 0.1.3+4 copy "ayrshare_flutter: ^0.1.3+4" to clipboard
ayrshare_flutter: ^0.1.3+4 copied to clipboard

Add social media management to your app including posting, analytics, history, and much more.

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 support@ayrshare.com

7
likes
110
pub points
63%
popularity

Publisher

verified publisherayrshare.com

Add social media management to your app including posting, analytics, history, and much more.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, http, image_picker

More

Packages that depend on ayrshare_flutter