Safe Haskell | None |
---|
Documentation
:: TwitterBaseM m | |
=> Method | HTTP request method (GET or POST) |
-> String | API Resource URL |
-> SimpleQuery | Query |
-> TW m (Response (ResumableSource (TW m) ByteString)) |
apiRequest :: TwitterBaseM m => Request -> TW m (Response (ResumableSource (TW m) ByteString))Source
call :: (TwitterBaseM m, FromJSON responseType) => APIRequest apiName responseType -> TW m responseTypeSource
call' :: (TwitterBaseM m, FromJSON value) => APIRequest apiName responseType -> TW m valueSource
sourceWithMaxId :: (TwitterBaseM m, FromJSON responseType, AsStatus responseType, HasMaxIdParam (APIRequest apiName [responseType])) => APIRequest apiName [responseType] -> Source (TW m) responseTypeSource
sourceWithCursor :: (TwitterBaseM m, FromJSON responseType, CursorKey ck, HasCursorParam (APIRequest apiName (WithCursor ck responseType))) => APIRequest apiName (WithCursor ck responseType) -> Source (TW m) responseTypeSource
type TwitterBaseM m = (MonadResource m, MonadLogger m)Source
:: MonadThrow m | |
=> Method | HTTP request method (GET or POST) |
-> String | API Resource URL |
-> SimpleQuery | Query |
-> TW m Request |
sinkJSON :: (MonadThrow m, MonadLogger m) => Consumer ByteString m ValueSource
sinkFromJSON :: (FromJSON a, MonadThrow m, MonadLogger m) => Consumer ByteString m aSource
showBS :: Show a => a -> ByteStringSource