...
Browse friends of a specific user
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/friend |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
searchsearch | string | no | Keyword for searching friends |
user_id | string | no | Iser id |
limit | number | no | Limit return results |
view | string | no | Support some view mode: mutual, online |
...
Remove a friend
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/friend?friend_user_id=14 |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
friend_user_id | number | yes | Friend id |
...
Post new friend request
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/friend/request |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
user_id | number | yes | User id that want to be friend with |
...
Cancel a friend request
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/friend |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
user_id | number | yes | Friend id |
...
Accept or deny a friend request
Example URI
Code Block | ||||
---|---|---|---|---|
| ||||
http://example.com/restful_api/friend/request |
...
Parameters
Parameter | Type | Require ? | Description |
---|---|---|---|
user_id | number | yes | Friend id |
action | string | yes | Available values: accept, deny |
...