Safe Haskell | None |
---|---|
Language | Haskell2010 |
Internal helper functions for performing actions.
- buildRequest :: Client -> Resource -> SimpleQuery -> IO Request
- decodeResponse :: FromJSON a => Response ByteString -> Either String a
- get :: FromJSON a => Client -> Resource -> SimpleQuery -> IO (Either String a)
- makeRequest :: Client -> Request -> IO (Response ByteString)
- paginate :: Page -> PerPage -> SimpleQuery
Documentation
buildRequest :: Client -> Resource -> SimpleQuery -> IO Request Source
Build a request by constructing the URL and appending the access token.
decodeResponse :: FromJSON a => Response ByteString -> Either String a Source
Decode a response by parsing its body as JSON.
get :: FromJSON a => Client -> Resource -> SimpleQuery -> IO (Either String a) Source
Get the given resource.
makeRequest :: Client -> Request -> IO (Response ByteString) Source
Make an HTTP request using the client's manager.
paginate :: Page -> PerPage -> SimpleQuery Source
Convert pagination parameters into a query.