Get User's Social Associations
This endpoint retrieves all user's social associations.
info
This operation requires that the user is the same or has the admin role to view all the associations.
info
This operation does not require authentication to view only the associations with show_in_profile set to true.
HTTP Request
GET /api/v2/user/provider/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
user_id | query | integer | false | A unique integer value identifying this user |
Example Request
- JavaScript
- Bash
const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};
fetch('/api/v2/user/provider/?user_id=11',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
# You can also use wget
curl -X GET /api/v2/user/provider/ \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access_token}'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | List of associated external providers | list(User External Provider) |
Example responses
- 200
[
{
"user_id": "integer",
"provider": "string",
"ext_id": "integer",
"metadata": {
"ext_id": "integer",
"username": "string",
"email": "string"
}
},
{
"user_id": "integer",
"provider": "string",
"ext_id": "integer",
"profile_url": "string(uri)",
"show_in_profile": "boolean"
},
{...}
]