twitter_1user 1.0.1 icon indicating copy to clipboard operation
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
90
pub points
25%
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.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE.txt)

Dependencies

convert, crypto

More

Packages that depend on twitter_1user