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']);
    });
}

Libraries

browser

io

twit