Contacts/Friends

Can be used as a friend list for each user. Use these functions to add/remove users to someone's list. Users can only add/remove contacts on their own account.

To accept/reject a friend request, you also use the same add/remove functions.

All requests in this page require the same header

Header authorization access_token

Add Contact

POST http://127.0.0.1/users/friends/add
{
    "username" : "player"
}

Remove Contact

POST http://127.0.0.1/users/friends/remove
{
    "username" : "player"
}

Get Contact List

GET http://127.0.0.1/users/friends/list

Last updated