twit 0.0.3 twit: ^0.0.3 copied to clipboard
Dart port of Tolga Tezel's Twitter client.
twit #
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']);
});
}