👥
User Login API
  • Getting Started
    • User Login API
    • Install Server Locally
    • Test with Insomnia
    • Cloud Server Installation
    • Remote Access and DB Authentication
    • Enable HTTPS
    • Enable Email Sending
  • Requests
    • Unity Requests
    • Register and Login
    • Get Users
    • Edit Users
    • Gain Rewards
    • Contacts/Friends
    • Activity
  • Other
    • Custom Code and Data
    • NetcodePlus Integration
    • Support and Community
Powered by GitBook
On this page
  • Add Contact
  • Remove Contact
  • Get Contact List
  1. Requests

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 2 years ago