bitx-bitcoin-0.1.0.0: A Haskell library for working with the BitX bitcoin exchange.

CopyrightNo Rights Reserved
LicensePublic Domain
MaintainerTebello Thejane <zyxoas+hackage@gmail.com>
StabilityExperimental
Portabilitynon-portable (GHC Extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Bitcoin.BitX.Private.Auth

Description

The single function in this module, allows your application to use the private BitX API via OAuth2.

To use OAuth2, you first need to contact the BitX team support@bitx.co, and provide them with * Application name * Application description * Website URL * Permissions required * Redirect URL * Your BitX account username

Next, the user needs to be sent to https://bitx.co/oauth2/authorize?client_id=your_client_id&scope=your_requested_permissions&state=your_unique_state, where they can confirm the request. If they do confirm the request, they will be sent to your redirect URL, with an authorisation code as one of the GET parameter: https://example.com/callback?code=authorization_code&state=your_unique_state

The permissions are explained in the Network.Bitcoin.BitX.Private module.

Synopsis

Documentation

authGrant :: BitXClientAuth -> Text -> IO (BitXAPIResponse BitXAuth) Source

Grant

Once your application has received an authorization code, it can exchange it for an API key. This is done by calling the grant endpoint. The resulting API key can be used to access the BitX API calls for which it has the appropriate permissions.