Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
使用 Ayrshare Flutter SDK 套件從 Flutter 管理使用者的社群媒體帳號
$ flutter pub add ayrshare_flutter
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'), ), )); } }