Authorization
Authorization
To authorize your application and make further api requests, you should receive API Token at first.
Using your's username
client_id
and client_secret
, make api request to authorize your app.
Use this authorization url to see how to make an authentication request
Example:
URL:
POST https://api.brownbook.net/token
JSON:
{
"client_id": "...",
"client_secret": "...",
"username": "your-username"
}
Response:
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "def50200345d39dd6a722204211d4210...",
"expires_in": 2592000
}
"expires_in"
- token lifetime in seconds, actual 30 Days
To update your token just rerun again authorization request, refresh-token is not supported yet.