get_friends
- Home
- Social Graph
- SvcFriendship
- get_friends
get_friends
Gets a user’s friends.
Parameters
Name | Description |
userID required | User ID of the user performing the action. |
status optional | Name of the friendship status type. |
founder optional | Whether the founder of a friendship or not. |
full optional | Whether or not to return full user profiles or just IDs. |
page optional | Page of results to return. |
perPage optional | Number of items to return per page. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcFriendship?action=getFriends&userID=229751571&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
{ "service":"svcFriendship", "action":"getFriends", "total":"1", "page":1, "per_page":10, "code":1, "message":"Friends Successfully Retrieved", "item":{ "1":{ "friend_id":229829209, "status":"Friends", "status_id":"1", "founder":"1" } } } |
Service Information
Service | svcFriendship |
Method | get_friends |
Type | REST |
Response Types | JSON, XML |