twitter 0.4.0

twitter.dart

Build Status pub package

Twitter Library for Dart.

Example

REST API

import 'package:twitter/twitter.dart';

main () async {
  Twitter twitter= new Twitter('YOUR CONSUMER KEY', 'YOUR CONSUMER SERCRET',
                    'YOUR ACCESS TOKEN', 'YOUR ACCESS TOKEN SECERT');
  var response = await twitter.request("GET", "statuses/user_timeline.json");
  print(response.body);
}

STREAM API

Map keymap = {"consumerKey" : "YOUR CONSUMER KEY",
              "consumerSecret" : "YOUR CONSUMER SECRET",
              "accessToken" : "YOUR ACCESS TOKEN",
              "accessSecret" : "YOUR ACCESS SECRET"};
Twitter twitter = new Twitter.fromMap(keyMap);

TwitterStream userstream = await twitter.getStream();
userstream.listen((tweet) {
  print(tweet["text"]);
});

TODO

  • Write more detailed Example
  • Support Twitter Model
  • Support Stream Event

LICENSE

MIT LICENSE

0.4.0

  • Support Twitter Streaming API

0.3.1

  • Fix sdk version

0.3.0

  • Update dependencies
    • OAuth.dart - using random.secure function for generate randombytes
  • Fix README

0.2.0

  • Remove library tag
  • Add Twitter.fromMap constrcutor
  • Fix README

0.1.1

  • Fix problem that a delay occurs
  • Using Completer for Error Processing

0.1.0

Initial Version

1. Depend on it

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

dependencies:
  twitter: "^0.4.0"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:twitter/twitter.dart';

About

Twitter API Library

Author

Email nobuk4869@gmail.com sh4869

Homepage

github.com/sh4869/twitter.dart

Documentation

www.dartdocs.org/documentation/twitter/0.4.0/

Source code (hyperlinked)

www.crossdart.info/p/twitter/0.4.0/

Uploader

nobuk4869@gmail.com

Published

Feb 28, 2016

Share