Authenticate with the Spacebring API
Authorization
header that contains the word Basic
word followed by a space and a base64-encoded string username:password
. In Spacebring, username
is your client_id
and password
is your client_secret
. For example, to authorize as client id / client secret
you would send
Parameter | Description |
---|---|
client_id | your Client ID |
redirect_uri | your redirect_uri |
response_type | should be set to code |
scope | list of scopes separated by spaces or commas |
redirect_uri
with code
in query parameters.
Parameter | Description |
---|---|
client_id | your Client ID |
client_secret | your Client Secret |
grant_type | should be set to authorization_code |
code | code received in previous step |
spacebring-network-id
header with the id of the network.
Parameter | Description |
---|---|
client_id | your Client ID |
client_secret | your Client Secret |
grant_type | should be set to refresh_token |
refresh_token | refresh token received in previous step |
token
in query parameters.
You will receive response that looks like this: