...
Code Block | ||
---|---|---|
| ||
https://hq.api.affinityliveaccelo.com/oauth2/v0/authorize? scope=read(all)& response_type=code& client_id=34ad67fa2f@hq.affinitylive.com |
...
Code Block | ||
---|---|---|
| ||
POST /oauth2/v0/token HTTP/1.1 Host: hq.api.affinityliveaccelo.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.affinityliveaccelo.com/oauth2/v0/token.json" |
...
Code Block | ||
---|---|---|
| ||
GET https://hq.api.affinityliveaccelo.com/api/v0/companies/1?_bearer_token=frLA0s1m_D |
...
Code Block | ||
---|---|---|
| ||
GET /api/v0/companies/1 HTTP/1.1 Host: hq.api.affinityliveaccelo.com Authorization: Bearer frLA0s1m_D |
References and additional reading
...