...
Code Block | ||
---|---|---|
| ||
POST /oauth2/v0/token HTTP/1.1 Host: hq.api.affinitylive.com Content-Type: application/x-www-form-urlencoded Authorization: Basic {client_id}:{client_secret} code=frLA0s1m_D& grant_type=authorization_code |
For example, using curl with a JSON response
Code Block |
---|
curl -u {client_id}:{client_secret} --data "code={code}&grant_type=authorization_code" "https://{deployment}.api.affinitylive.com/oauth2/v0/token.json" |
Upon a successful request the response contains the following fields:
...