Finally some code! This is standard for most APIs so we'll go through it quickly! If you want to read more about revoking credentials and more see our
API documentation. We need to send our client id and client secret which can be seen as a basic login with a username and password to obtain our token.
HTTP/1.1 200 OK
Status: 200 OK
Content-Type: application/json; charset=utf-8
...
{
"access_token": "asdAASDASDASD_SASDASD",
"expires_in": 3122063999,
"scope": "",
"token_type": "bearer"
}