Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated outdated affinitylive.com links

...

 

Code Block
linenumberstrue
https://hq.api.affinityliveaccelo.com/oauth2/v0/authorize?
scope=read(all)&
response_type=code&
client_id=34ad67fa2f@hq.affinitylive.com

 

...

 

Code Block
linenumberstrue
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
linenumberstrue
GET https://hq.api.affinityliveaccelo.com/api/v0/companies/1?_bearer_token=frLA0s1m_D

...

 

Code Block
linenumberstrue
GET /api/v0/companies/1 HTTP/1.1
Host: hq.api.affinityliveaccelo.com
Authorization: Bearer frLA0s1m_D

References and additional reading

...