twitter 0.5.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 39

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.5.1

  • Fix error on strong mode on dart2

0.5.1

  • Fix error on mulitple request (#5)

0.5.0

  • Fix error on strong mode
  • Add Example

0.4.1

  • Update OAuth.dart

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

Use this package as a library

1. Depend on it

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


dependencies:
  twitter: ^0.5.2

2. Install it

You can install packages from the command line:

with pub:


$ 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';
  
Version Uploaded Documentation Archive
0.5.2 Apr 9, 2018 Go to the documentation of twitter 0.5.2 Download twitter 0.5.2 archive
0.5.1 Jan 5, 2018 Go to the documentation of twitter 0.5.1 Download twitter 0.5.1 archive
0.5.0 Dec 21, 2017 Go to the documentation of twitter 0.5.0 Download twitter 0.5.0 archive
0.4.0 Feb 28, 2016 Go to the documentation of twitter 0.4.0 Download twitter 0.4.0 archive
0.3.1 Feb 28, 2016 Go to the documentation of twitter 0.3.1 Download twitter 0.3.1 archive
0.2.0+1 Feb 12, 2016 Go to the documentation of twitter 0.2.0+1 Download twitter 0.2.0+1 archive
0.2.0 Feb 12, 2016 Go to the documentation of twitter 0.2.0 Download twitter 0.2.0 archive
0.1.1 Sep 15, 2015 Go to the documentation of twitter 0.1.1 Download twitter 0.1.1 archive
0.1.0 Jul 12, 2015 Go to the documentation of twitter 0.1.0 Download twitter 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
78
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
0
Overall:
Weighted score of the above. [more]
39
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0