Gets a list of user’s friends from a social provider.
platform | string Name of the chosen social provider which you can enable in your Publisher Account > your Login project > Social connections. If you do not specify it, the call gets friends from all social providers. |
offset | integer >= 0 Default: 0 Number of the elements from which the list is generated. |
limit | integer [ 1 .. 500 ] Default: 500 Maximum number of friends that are returned at a time. |
with_xl_uid | boolean Default: false Shows whether the social friends are from your game. |
OK
Unauthorized
Too Many Requests
curl --request GET \ --url 'https://login.xsolla.com/api/users/me/social_friends?platform=SOME_STRING_VALUE&offset=0&limit=500&with_xl_uid=false' \ --header 'Authorization: Bearer BEARER_TOKEN'
{- "data": [
- {
- "name": "John Smith",
- "platform": "twitter",
- "user_id": "johnsmith007",
- "xl_uid": "2a6e0079-d7a7-11e8-963b-82010aa80778"
}, - {
- "name": "Riley Parker",
- "platform": "vk",
- "user_id": "19932423423424390",
- "xl_uid": "1e6e2979-d7f7-11e8-963b-42010aa80910"
}
], - "limit": 500,
- "offset": 1000,
- "total_count": 4000,
- "with_xl_uid": true
}