π€ Authenticate
π Basic Authentication
The API uses Basic authentication, all your requests must have the Authorization
header set to Basic <credentials>
where credentials
is the Base64 encoding of your API key and API secret joined by a single colon :
.
Example
For instance, if your API key is
hello
and your API secretworld
, then you must compute the Base64 encoding forhello:world
which isaGVsbG86d29ybGQ=
.Thus, all your requests must include the following header:
Authorization: Basic aGVsbG86d29ybGQ=
βοΈ Snippets to hash your key
Buffer.from('hello:world').toString('base64');
import base64
base64.b64encode('hello:world'.encode('ascii')).decode('ascii')
Updated 4 months ago