Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Userstream
- userstream :: APIRequest Userstream StreamingAPI
- data StatusesFilter
- data FilterParameter
- statusesFilter :: [FilterParameter] -> APIRequest StatusesFilter StreamingAPI
- statusesFilterByFollow :: [UserId] -> APIRequest StatusesFilter StreamingAPI
- statusesFilterByTrack :: Text -> APIRequest StatusesFilter StreamingAPI
- stream :: (MonadResource m, FromJSON responseType) => TWInfo -> Manager -> APIRequest apiName responseType -> m (ResumableSource m responseType)
- stream' :: (MonadResource m, FromJSON value) => TWInfo -> Manager -> APIRequest apiName responseType -> m (ResumableSource m value)
StreamingAPI
data Userstream Source #
data StatusesFilter Source #
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 #
:: Text | keyword |
-> APIRequest StatusesFilter StreamingAPI |
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 #