To begin the OAuth2 process. Will direct the user to the authorization server, as specified in the [oauthConfig].
Get information on currencies.
Get an estimate for an order. Takes a prepared order object created with generateObjectForOrderCreation.
Legacy functions - use at your own risk.
Get information on pairs.
Get the proper order URL from an order Id.
Gets the access token from the auth server. It abstracts away the exchange of an authorization code for an access token, or refreshing an access token with a refresh token.
Determines if the current access token is expired. Will return false
if
the access token hasn't been fetched yet.
Determines if there is any access token fetched. Does not mean it is valid, so you must still check the expiry.
Determines if the user is returning from the auth server. Returns a promise since something could possibly go wrong, and inside the callback indicates if they actually have.
Resets the current OAuth state, effectively "logging out" the user.
Stops or starts decorating fetch
with OAuth headers.
Create a bookmark to use for later.
A type of bookmark that will be saved.
Fetch a particular bookmark.
A URL which references a bookmark to fetch.
Fetches many bookmarks and can filter them based options passed.
A dictionary of options.
The current options accepted are: { currency: string }
.
Remove a particular bookmark.
A URL which references a bookmark to fetch. Check the status code for success (200) or not found (404).
Generated using TypeDoc
The Bity API client interface that abstracts all Bity services.