accept_friendship
- Home
- Social Graph
- SvcFriendship
- accept_friendship
accept_friendship
Accepts a friend request.
Parameters
| Name | Description |
| userID required | User ID of the user performing the action. |
| friendID required | User ID of the friend who should be accepted, blocked, etc. |
| output optional | The response output format. Accepts JSON and XML. |
Request Syntax
| https://services.onesite.com/rest/svcFriendship?action=acceptFriendship&userID=229829209&friendID=229751571&devkey=[devkey] |
JSON Response
|
1 2 3 4 5 6 |
{ "service":"svcFriendship", "action":"acceptFriendship", "code":1, "message":"Friend Request Accepted" } |
Service Information
| Service | svcFriendship |
| Method | accept_friendship |
| Type | REST |
| Response Types | JSON, XML |