twitter_1user 1.0.1 copy "twitter_1user: ^1.0.1" to clipboard
twitter_1user: ^1.0.1 copied to clipboard

Connect to Twitter API with OAuth1.0a. The access token is assumed to be obtained from the Twitter application details page. It is therefore ideal for single user applications.

twitter 1user #

pub package

Connect to Twitter API with OAuth1.0a. The access token is assumed to be obtained from the Twitter application details page. It is therefore ideal for single user applications.

Install #

Add this to your package's pubspec.yaml file.

dependencies:
  twitter_1user: ^1.0.1

You can install packages from the command line.

pub get

Example #

import 'package:twitter_1user/twitter_1user.dart';

main(List<String> arguments) async {
  Twitter twitter = new Twitter('CONSUMER KEY', 'CONSUMER SECRET',
      'ACCESS TOKEN', 'ACCESS TOKEN SECRET');

  String response = await twitter.request(
      'get', 'statuses/user_timeline.json', {});
  var tweets = jsonDecode(response);
  print(tweets[2]);

  response =
  await twitter.request('post', 'statuses/update.json', {'status': 'Hello!'});
  print(response);
}

LICENSE #

MIT

1
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Connect to Twitter API with OAuth1.0a. The access token is assumed to be obtained from the Twitter application details page. It is therefore ideal for single user applications.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

convert, crypto

More

Packages that depend on twitter_1user