GET login/users/:user id/credentials
From Social ID Developers
Revision as of 16:13, 27 March 2020 by Renato.neves (Talk | contribs)
Contents |
Description
Returns all User's Social App credentials.
Resource URL
GET https://api.socialidnow.com/v1/marketing/login/users/:user_id/credentials
URL Parameters
user_id | required | User identifier. |
---|
Authentication
This API requires Social Login App authentication. See Authentication.
Response
Response Status
ok (200) | The User's credentials were returned succesfully. |
---|---|
unauthorized (401) | The authentication is wrong. See Authentication. |
forbidden (403) | The login app does not have permission to access the user. |
not_found (404) | The user was not found. |
internal_server_error (500) | An unknown error happened. |
Response Body
Array of Credentials, each with the following possible fields:
type | Credential Social App type, "facebook", "twitter", "linkedin", "gplus", "instagram" or "apple". |
---|---|
access_token | Credential access token. |
access_secret | Credential access secret. |
provider_id | Credential provider identifier. |
created_at | Credential created timestamp. |
updated_at | Credential last updated timestamp. |
Examples
Request
Return all Social Apps from the Social Login App.
curl -X GET 'https://api.socialidnow.com/v1/marketing/login/users/2136/credentials' \ --user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf
Response
Response Headers
HTTP/1.1 200 Ok Status: 200
Response Body
{ [ { "type":"facebook", "access_token":"iKjQoG9EYp3TUEF01kKTveFwoMUawllf3yD8Hg1GYX5oVplvjOamtFLHxC8fJ2MA", "provider_id":"7825648568279477", "created_at":"2020-01-15T13:18:44Z", "updated_at":"2020-01-15T13:18:44Z", }, { "type":"linkedin", "access_token":"AD3VSBqecaTqb0Ya7Ts2W9295yAzjmfrlNdV81k3fGoYRlU8JPlYWfJr7hIJ7Zj4", "provider_id":"QAfgxSmyMiayPVq4", "created_at":"2020-02-21T08:25:39Z", "updated_at":"2020-01-21T08:25:39Z", } ] }