ayrshare_flutter 0.1.3+4 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
- Post to 10 social network. Send posts real time or schedule for a future date and time.
- Get analytics on shortened links, post data like shares, likes, shares, and impressions, and account data like followers, and subscribers.
- Get a history of all posts and their current status in descending order.
- Upload and store images and videos. Returns a URL referencing the image. Great for those who do not have their own media hosting service.
- Get and send comments on a post.
- Shorten a URL and return the shortened URL. Track clicks.
- Add a new RSS or Substack feed to auto post all new articles.
- Create and manage multiple users with the Business Plan. Post to their social account.
- Webhooks allows you to be notified when certain system actions occur via a call to a URL you provide.
Get Started #
- Get started with a free plan or paid plan, or if you have a platform or manage multiple users check out the Business Plan.
- 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:
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