make_friendship
- Home
- Social Graph
- SvcFriendship
- make_friendship
make_friendship
Creates a friendship between two users.
Parameters
Name | Description |
userID required | User ID of the user performing the action. |
newFriend required | User ID of the user who is going to become a new friend. |
status optional | Name of the friendship status type. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcFriendship?action=makeFriend&userID=229751571&newFriend=229829209&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
{ "service":"svcFriendship", "action":"makeFriend", "total":1, "page":1, "per_page":1, "code":1, "message":"New Friendship Successfully Created", "item":{ "1":{ "userID":229751571, "newFriend":"229829209", "friendshipStatus":"pending" } } } |
Service Information
Service | svcFriendship |
Method | make_friendship |
Type | REST |
Response Types | JSON, XML |