twitter-conduit-0.2.2.2: Twitter API package with conduit interface and Streaming API support.

Safe HaskellNone
LanguageHaskell2010

Web.Twitter.Conduit.Stream

Contents

Synopsis

StreamingAPI

data FilterParameter Source #

Constructors

Follow [UserId] 
Track [Text] 

statusesFilter :: [FilterParameter] -> APIRequest StatusesFilter StreamingAPI Source #

Returns statuses/filter.json API query data.

>>> statusesFilter [Follow [1,2,3]]
APIRequestPost "https://stream.twitter.com/1.1/statuses/filter.json" [("follow","1,2,3")]
>>> statusesFilter [Track ["haskell","functional"]]
APIRequestPost "https://stream.twitter.com/1.1/statuses/filter.json" [("track","haskell,functional")]
>>> statusesFilter [Follow [1,2,3],Track ["haskell","functional"]]
APIRequestPost "https://stream.twitter.com/1.1/statuses/filter.json" [("follow","1,2,3"),("track","haskell,functional")]

statusesFilterByFollow :: [UserId] -> APIRequest StatusesFilter StreamingAPI Source #

Returns statuses/filter.json API query data.

>>> statusesFilterByFollow [1,2,3]
APIRequestPost "https://stream.twitter.com/1.1/statuses/filter.json" [("follow","1,2,3")]

statusesFilterByTrack Source #

Returns statuses/filter.json API query data.

>>> statusesFilterByTrack "haskell"
APIRequestPost "https://stream.twitter.com/1.1/statuses/filter.json" [("track","haskell")]

stream :: (MonadResource m, FromJSON responseType) => TWInfo -> Manager -> APIRequest apiName responseType -> m (ResumableSource m responseType) Source #

stream' :: (MonadResource m, FromJSON value) => TWInfo -> Manager -> APIRequest apiName responseType -> m (ResumableSource m value) Source #