twitter_kit 0.2.0 copy "twitter_kit: ^0.2.0" to clipboard
twitter_kit: ^0.2.0 copied to clipboard

Project to make it easier to access the Twitter API. Referring to the Twitter kit for Android.

twitter_kit #

Project to make it easier to access the Twitter API. Referring to the Twitter kit for Android. Web is not supported due to Cross-Domain issues.

Usage #

import 'package:twitter_kit/twitter_kit.dart';

final Twitter twitter = Twitter(consumerKey, consumerSecret);
await _twitter.initialize();
// get current session
final currentSession = await twitter.currentSession;
// is session active
final isSessionActive = await twitter.isSessionActive;
// login
final isLogin = await twitter.login();
// logout
await twitter.logout();
// use rest api
final StatusesService statusesService = twitter.statusesService;
await statusesService.show(1242645624106807297).then((response) {
  if (response.isSuccessful) {
    final Tweet tweet = response.body;
    print(tweet.toJson());
  } else {
    print(response.error);
  }
});

TODO #

  • Adding the media api
  • Adding the search api
  • Adding the APIs not included in twitter-kit-android
2
likes
40
pub points
0%
popularity

Publisher

verified publisherkitproject.info

Project to make it easier to access the Twitter API. Referring to the Twitter kit for Android.

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

chopper, flutter, json_annotation, oauth1

More

Packages that depend on twitter_kit