Safe Haskell | None |
---|---|
Language | Haskell98 |
- api :: TwitterBaseM m => Method -> String -> SimpleQuery -> TW m (Response (ResumableSource (TW m) ByteString))
- getResponse :: TwitterBaseM m => Request -> TW m (Response (ResumableSource (TW m) ByteString))
- call :: (TwitterBaseM m, FromJSON responseType) => APIRequest apiName responseType -> TW m responseType
- call' :: (TwitterBaseM m, FromJSON value) => APIRequest apiName responseType -> TW m value
- checkResponse :: Response Value -> Either TwitterError Value
- sourceWithMaxId :: (TwitterBaseM m, FromJSON responseType, AsStatus responseType, HasMaxIdParam (APIRequest apiName [responseType])) => APIRequest apiName [responseType] -> Source (TW m) responseType
- sourceWithMaxId' :: (TwitterBaseM m, HasMaxIdParam (APIRequest apiName [responseType])) => APIRequest apiName [responseType] -> Source (TW m) Value
- sourceWithCursor :: (TwitterBaseM m, FromJSON responseType, CursorKey ck, HasCursorParam (APIRequest apiName (WithCursor ck responseType))) => APIRequest apiName (WithCursor ck responseType) -> Source (TW m) responseType
- sourceWithCursor' :: (TwitterBaseM m, FromJSON responseType, CursorKey ck, HasCursorParam (APIRequest apiName (WithCursor ck responseType))) => APIRequest apiName (WithCursor ck responseType) -> Source (TW m) Value
- type TwitterBaseM m = (MonadResource m, MonadLogger m)
- endpoint :: String
- makeRequest :: (MonadThrow m, MonadIO m) => APIRequest apiName responseType -> m Request
- sinkJSON :: (MonadThrow m, MonadLogger m) => Consumer ByteString m Value
- sinkFromJSON :: (FromJSON a, MonadThrow m, MonadLogger m) => Consumer ByteString m a
- showBS :: Show a => a -> ByteString
Documentation
:: TwitterBaseM m | |
=> Method | HTTP request method (GET or POST) |
-> String | API Resource URL |
-> SimpleQuery | Query |
-> TW m (Response (ResumableSource (TW m) ByteString)) |
Deprecated: use `getResponse =<< makeRequest'`
getResponse :: TwitterBaseM m => Request -> TW m (Response (ResumableSource (TW m) ByteString)) Source
call :: (TwitterBaseM m, FromJSON responseType) => APIRequest apiName responseType -> TW m responseType Source
call' :: (TwitterBaseM m, FromJSON value) => APIRequest apiName responseType -> TW m value Source
sourceWithMaxId :: (TwitterBaseM m, FromJSON responseType, AsStatus responseType, HasMaxIdParam (APIRequest apiName [responseType])) => APIRequest apiName [responseType] -> Source (TW m) responseType Source
sourceWithMaxId' :: (TwitterBaseM m, HasMaxIdParam (APIRequest apiName [responseType])) => APIRequest apiName [responseType] -> Source (TW m) Value Source
sourceWithCursor :: (TwitterBaseM m, FromJSON responseType, CursorKey ck, HasCursorParam (APIRequest apiName (WithCursor ck responseType))) => APIRequest apiName (WithCursor ck responseType) -> Source (TW m) responseType Source
sourceWithCursor' :: (TwitterBaseM m, FromJSON responseType, CursorKey ck, HasCursorParam (APIRequest apiName (WithCursor ck responseType))) => APIRequest apiName (WithCursor ck responseType) -> Source (TW m) Value Source
type TwitterBaseM m = (MonadResource m, MonadLogger m) Source
makeRequest :: (MonadThrow m, MonadIO m) => APIRequest apiName responseType -> m Request Source
sinkJSON :: (MonadThrow m, MonadLogger m) => Consumer ByteString m Value Source
sinkFromJSON :: (FromJSON a, MonadThrow m, MonadLogger m) => Consumer ByteString m a Source
showBS :: Show a => a -> ByteString Source