Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Bindings for The OAuth 2.0 Authorization Framework: Bearer Token Usage RFC6750 https://www.rfc-editor.org/rfc/rfc6750
Synopsis
- authGetJSON :: (MonadIO m, FromJSON a) => Manager -> AccessToken -> URI -> ExceptT ByteString m a
- authGetBS :: MonadIO m => Manager -> AccessToken -> URI -> ExceptT ByteString m ByteString
- authGetBS2 :: MonadIO m => Manager -> AccessToken -> URI -> ExceptT ByteString m ByteString
- authGetJSONWithAuthMethod :: (MonadIO m, FromJSON a) => APIAuthenticationMethod -> Manager -> AccessToken -> URI -> ExceptT ByteString m a
- authGetJSONInternal :: (MonadIO m, FromJSON a) => APIAuthenticationMethod -> Manager -> AccessToken -> URI -> ExceptT ByteString m a
- authGetBSWithAuthMethod :: MonadIO m => APIAuthenticationMethod -> Manager -> AccessToken -> URI -> ExceptT ByteString m ByteString
- authGetBSInternal :: MonadIO m => APIAuthenticationMethod -> Manager -> AccessToken -> URI -> ExceptT ByteString m ByteString
- authPostJSON :: (MonadIO m, FromJSON a) => Manager -> AccessToken -> URI -> PostBody -> ExceptT ByteString m a
- authPostBS :: MonadIO m => Manager -> AccessToken -> URI -> PostBody -> ExceptT ByteString m ByteString
- authPostBS2 :: MonadIO m => Manager -> AccessToken -> URI -> PostBody -> ExceptT ByteString m ByteString
- authPostBS3 :: MonadIO m => Manager -> AccessToken -> URI -> PostBody -> ExceptT ByteString m ByteString
- authPostJSONWithAuthMethod :: (MonadIO m, FromJSON a) => APIAuthenticationMethod -> Manager -> AccessToken -> URI -> PostBody -> ExceptT ByteString m a
- authPostJSONInternal :: (MonadIO m, FromJSON a) => APIAuthenticationMethod -> Manager -> AccessToken -> URI -> PostBody -> ExceptT ByteString m a
- authPostBSWithAuthMethod :: MonadIO m => APIAuthenticationMethod -> Manager -> AccessToken -> URI -> PostBody -> ExceptT ByteString m ByteString
- authPostBSInternal :: MonadIO m => APIAuthenticationMethod -> Manager -> AccessToken -> URI -> PostBody -> ExceptT ByteString m ByteString
- data APIAuthenticationMethod
AUTH requests
:: (MonadIO m, FromJSON a) | |
=> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> ExceptT ByteString m a | Response as JSON |
Conduct an authorized GET request and return response as JSON. Inject Access Token to Authorization Header.
:: MonadIO m | |
=> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> ExceptT ByteString m ByteString | Response as ByteString |
Conduct an authorized GET request. Inject Access Token to Authorization Header.
:: MonadIO m | |
=> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> ExceptT ByteString m ByteString | Response as ByteString |
Deprecated: use authGetBSWithAuthMethod
Same to authGetBS
but set access token to query parameter rather than header
authGetJSONWithAuthMethod Source #
:: (MonadIO m, FromJSON a) | |
=> APIAuthenticationMethod | |
-> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> ExceptT ByteString m a | Response as JSON |
Conduct an authorized GET request and return response as JSON. Allow to specify how to append AccessToken.
Since: 2.6.0
:: (MonadIO m, FromJSON a) | |
=> APIAuthenticationMethod | |
-> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> ExceptT ByteString m a | Response as JSON |
Deprecated: use authGetJSONWithAuthMethod
Deprecated. Use authGetJSONWithAuthMethod
instead.
authGetBSWithAuthMethod Source #
:: MonadIO m | |
=> APIAuthenticationMethod | Specify the way that how to append the |
-> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> ExceptT ByteString m ByteString | Response as ByteString |
Conduct an authorized GET request and return response as ByteString. Allow to specify how to append AccessToken.
Since: 2.6.0
:: MonadIO m | |
=> APIAuthenticationMethod | |
-> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> ExceptT ByteString m ByteString | Response as ByteString |
Deprecated: use authGetBSWithAuthMethod
:: (MonadIO m, FromJSON a) | |
=> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> PostBody | |
-> ExceptT ByteString m a | Response as JSON |
Conduct POST request and return response as JSON. Inject Access Token to Authorization Header.
:: MonadIO m | |
=> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> PostBody | |
-> ExceptT ByteString m ByteString | Response as ByteString |
Conduct POST request. Inject Access Token to http header (Authorization)
:: MonadIO m | |
=> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> PostBody | |
-> ExceptT ByteString m ByteString | Response as ByteString |
Deprecated: use authPostBSWithAuthMethod
Conduct POST request with access token only in the request body but header.
:: MonadIO m | |
=> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> PostBody | |
-> ExceptT ByteString m ByteString | Response as ByteString |
Deprecated: use authPostBSWithAuthMethod
Conduct POST request with access token only in the header and not in body
authPostJSONWithAuthMethod Source #
:: (MonadIO m, FromJSON a) | |
=> APIAuthenticationMethod | |
-> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> PostBody | |
-> ExceptT ByteString m a | Response as ByteString |
Conduct POST request and return response as JSON. Allow to specify how to append AccessToken.
Since: 2.6.0
:: (MonadIO m, FromJSON a) | |
=> APIAuthenticationMethod | |
-> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> PostBody | |
-> ExceptT ByteString m a | Response as ByteString |
Deprecated: use authPostJSONWithAuthMethod
authPostBSWithAuthMethod Source #
:: MonadIO m | |
=> APIAuthenticationMethod | |
-> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> PostBody | |
-> ExceptT ByteString m ByteString | Response as ByteString |
Conduct POST request and return response as ByteString. Allow to specify how to append AccessToken.
Since: 2.6.0
:: MonadIO m | |
=> APIAuthenticationMethod | |
-> Manager | HTTP connection manager. |
-> AccessToken | |
-> URI | |
-> PostBody | |
-> ExceptT ByteString m ByteString | Response as ByteString |
Deprecated: use authPostBSWithAuthMethod
Types
data APIAuthenticationMethod Source #
AuthInRequestHeader | Provides in Authorization header |
AuthInRequestBody | Provides in request body |
AuthInRequestQuery | Provides in request query parameter |