Description
You have to call this method when you want to retrieve the personal information from a social network in DruID by his ObjectID.
Please, read first https://dru-id.com/developers/apis/oauth-2/ to learn about Oauth2 protocol and the meaning of each token.
You can consult all the detailed information about user at https://dru-id.com/developers/apis/registration-api/user-info/
Endpoint URL:
GET https://{your-endpoint-domain.com}/activityid/v1/user/{{objectid}}/social/{{social}}
Request parameters
Parameter | Description | Type | Required |
---|---|---|---|
objectid | User ID auto generated by DRUID. Its neccesary to refer to this user in API calls | string | yes |
social | The name of the social network. ATTOW it is only possible to get data form avet, but this endpoint is though to get information from all the enabled social networks. x, meta, google … | string | yes |
Authorization | Bearer ${app_token}
Literal text Bearer followed by app_token that is the token obtained from /oauth2/token endpoint | string | yes |
Content-Type | application/json | string | yes |
Accept | application/json | string | yes |
From | Id of the entry point | string | yes |
Accept-Language | Language of this request | Locale | no |
Query string parameters
none
Response examples
The responses are dynamically built depending on the social network response
Response Codes
Code | Type | Description |
---|---|---|
200 | Success | Personal data successfully obtained. You will get a personalized json fitted to the data comming form the social network. |
400 | Error | Bad Request: The request could not be understood by the server due to malformed syntax |
401 | Error | Unauthorized: authentication is required and has failed or has not yet been provided (token is invalid, etc) |
404 | Error | Not found: no user has been found associated with his objectId or the social network do not exist |
412 | Error | User is not linked with that social network |
500 | Error | Internal Server Error: The server encountered an unexpected condition which prevented it from fulfilling the request |
501 | Error | The social network selected is not available to request social data yet |