searchFriends
- Home
- Social Graph
- SvcFriendship
- searchFriends
searchFriends
Searches a user’s friends.
Parameters
| Name | Description |
| userID required | User ID of the user performing the action. |
| terms optional | Text string for searching friends. |
| 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=searchFriends&userID=229751571&terms=Andrew&devkey=[devkey] |
JSON Response
|
1 2 3 4 5 6 |
{ "service":"svcFriendship", "action":"searchFriends", "code":2, "message":"This user has no friends." } |
Service Information
| Service | svcFriendship |
| Method | searchFriends |
| Type | REST |
| Response Types | JSON, XML |