twit 0.0.4

  • Installing
  • Versions
  • 0


version 0.0.4 build status

Dart port of Tolga Tezel's Twitter client.

import 'dart:convert';
import 'package:twit/io.dart';

main() async {
    var twit = new Twit(
        new Credentials(consumerKey: ..., consumerSecret: ..., accessToken: ..., accessTokenSecret: ...));
    var stream ='');

    stream.listen((tweet) {
        print('Incoming Tweet: ' + tweet['text']);

Use this package as a library

1. Depend on it

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

  twit: ^0.0.4

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:twit/twit.dart';
Version Uploaded Documentation Archive
0.0.4 Mar 17, 2017 Go to the documentation of twit 0.0.4 Download twit 0.0.4 archive
0.0.3 Mar 12, 2017 Go to the documentation of twit 0.0.3 Download twit 0.0.3 archive
0.0.2 Mar 11, 2017 Go to the documentation of twit 0.0.2 Download twit 0.0.2 archive
0.0.1 Feb 25, 2017 Go to the documentation of twit 0.0.1 Download twit 0.0.1 archive
0.0.0 Feb 25, 2017 Go to the documentation of twit 0.0.0 Download twit 0.0.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
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.

Health issues and suggestions

Fix lib/src/client.dart. (-95.78 points)

Analysis of lib/src/client.dart failed with 11 errors, including:

line 106 col 21: Undefined name 'BASE64'.

line 164 col 16: Undefined name 'JSON'.

line 195 col 46: Undefined name 'UTF8'.

line 211 col 26: Default values of an optional parameter must be constant.

line 211 col 26: Undefined name 'UTF8'.

Fix lib/src/data/exception.dart. (-25.38 points)

Analysis of lib/src/data/exception.dart failed with 1 error, 1 hint:

line 22 col 18: Undefined name 'JSON'.

line 1 col 8: Unused import: 'dart:convert'.

Document public APIs (-9.95 points)

198 out of 199 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.

Format lib/src/apis/account.dart.

Run dartfmt to format lib/src/apis/account.dart.

Fix additional 4 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/apis/apis.dart (Run dartfmt to format lib/src/apis/apis.dart.)
  • lib/src/data/data.dart (Run dartfmt to format lib/src/data/data.dart.)
  • lib/src/data/twitter_data.dart (Run dartfmt to format lib/src/data/twitter_data.dart.)
  • lib/twit.dart (Run dartfmt to format lib/twit.dart.)

Maintenance issues and suggestions

Add SDK constraint in pubspec.yaml. (-50 points)

For information about setting SDK constraint, please see

Fix platform conflicts. (-20 points)

Low code quality prevents platform classification.

Maintain (-20 points)

Changelog entries help clients to follow the progress in your code.

Package is getting outdated. (-72.05 points)

The package was released 89 weeks ago.

The description is too short. (-20 points)

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

Maintain an example. (-10 points)

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 twit.dart.

Package is pre-v0.1 release. (-10 points)

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


Package Constraint Resolved Available
Direct dependencies
crypto >=2.0.0 <3.0.0 2.0.6
http >=0.11.0 <1.0.0 0.12.0
owl >=0.1.1 <1.0.0 0.4.0
random_string >=0.0.1 <0.1.0 0.0.2
Transitive dependencies
async 2.0.8
charcode 1.1.2
collection 1.14.11
convert 2.0.2
http_parser 3.1.3
meta 1.1.6
path 1.6.2
postgres 1.0.2
source_span 1.4.1
string_scanner 1.0.4
typed_data 1.1.6
Dev dependencies
build_runner >=0.3.0 <0.4.0
dotenv >=0.1.3 <0.2.0
owl_codegen >=0.1.1 <1.0.0
test >=0.12.0 <0.13.0