twit 0.0.4

  • README.md
  • Installing
  • Versions
  • 62

twit

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 = twit.stream('https://userstream.twitter.com/1.1/user.json');

    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:


dependencies:
  twit: "^0.0.4"

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: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

Analysis

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

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

Scores

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

Platforms

Detected platforms: Flutter, other

Primary library: package:twit/twit.dart with components: io.

Suggestions

  • Maintain CHANGELOG.md.

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

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 error 16 hints.

    Strong-mode analysis of lib/src/client.dart failed with the following error:

    line: 315 col: 7
    Missing concrete implementations of 'StreamTransformer.cast' and 'StreamTransformer.retype'.

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

    Similar analysis of the following files failed:

    • lib/src/apis/apis.dart (hint)
    • lib/src/data/data.dart (hint)
    • lib/src/data/exception.dart (hint)
    • lib/src/data/twitter_data.dart (hint)
    • lib/twit.dart (hint)
  • Package is getting outdated.

    The package was released 64 weeks ago.

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

Dependencies

Package Constraint Resolved Available
Direct dependencies
crypto >=2.0.0 <3.0.0 2.0.3
http >=0.11.0 <1.0.0 0.11.3+16
owl >=0.1.1 <1.0.0 0.2.2
random_string >=0.0.1 <0.1.0 0.0.1
Transitive dependencies
async 2.0.7
charcode 1.1.1
collection 1.14.10
convert 2.0.1
http_parser 3.1.2
path 1.6.0
postgresql 0.3.4+1
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
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