pub fn sample(token: &Token) -> TwitterStream
Expand description
Opens a TwitterStream
returning “a small random sample of all public statuses”.
As sample streams don’t have the same configuration options as filter streams,
this directly returns a TwitterStream
, rather than going through a StreamBuilder
. To apply
filter options on the public stream, start with filter
and add parameters to the
StreamBuilder
returned there.