twitter 0.5.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 88

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

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages 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

Analysis

We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
77 / 100
Health:
Code health derived from static analysis. [more]
99 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
88
Learn more about scoring.

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:twitter/twitter.dart.

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use twitter.dart.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 hint.

    Run dartfmt to format lib/twitter.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
http >=0.11.2 <0.12.0 0.11.3+16
oauth ^0.4.0 0.4.0
Transitive dependencies
async 2.0.7
bignum 0.0.7 0.1.0
charcode 1.1.1
cipher 0.7.1
collection 1.14.10
convert 2.0.1
crypto 2.0.5
fixnum 0.9.1+2 0.10.7
http_parser 3.1.2
path 1.6.1
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
Dev dependencies
test >=0.12.3+6 <0.13.0