The first step is to get authorization from the user. Use this endpoint to get access token. You will need the client ID as well as the username and password of your account. All API calls must supply this access token with Authorization: Bearer as header.
Must aplwayse be “password”
The authorization server issues an access token, and constructs the response by adding the following parameters to the entity-body of the HTTP response with a 200 (OK) status code. The granted access_token is valid for expires_in seconds only.
- access_token The access token issued by the authorization server.
- token_type The type of the token issued
- expires_in The lifetime in seconds of the access token. For example, the value “3600” denotes that the access token will expire in one hour from the time the response was generated.
- scope The scope of the access token