Get Blink user profile
Gets the Blink user profile, based on a valid authorization code that was previously obtained in a web application using login with blink.
| HTTP Method | URL |
|---|---|
| POST | baseUrl/oauth/access_token/ |
Request body
- Requires
client_idandclient_secretfrom a valid OAuth application config. - Requires a valid login token.
{
"client_id" : // OAuth client id
"client_secret" : // OAuth client secret
"code" : // login token
"grant_type": // OPTIONAL accepts only "authorization_code"
"redirect_uri": // OPTIONAL one of your OAuth application's redirect URIs
}
Success Response
HTTP code: 200
{
"user" : {
"email" : // Blink user's email address
}
}
Error Response
{
"code" : // Error code
"message": // Error message
}
| code | message |
|---|---|
| 1901 | Invalid grant type |
| 1902 | Invalid grant code |
| 1904 | Invalid client credentials |