tweet
This library is for deserializing data from the Twitter API.
I created this since I couldn't find a way to deserialize data while using twitter-stream
, and twitter-stream-message
is an abandoned project that does not work currently.
If there is anything missing feel free to create an issue. I tried to add every field regardless of potential use, but there were some I left out; mainly things with no concrete documentation or things that I cannot access like PowerTrack and enterprise endpoint responses.
Simple example
use FromStr;
use Tweet;
from_str
Usage with twitter-stream
use ;
use ;
use TwitterResponse;
// Import your keys however you want
let token = new;
let future = filter
.timeout
.track
.listen.unwrap
.flatten_stream
.for_each
.map_err;