👥
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
  • Get All Users
  • Get One User
  • Get Online
  1. Requests

Get Users

Last updated 2 years ago

Get All Users

Get a list of all users. Any access level can do this, but admin will get access to more information, for example emails and permission levels are only visible to admins, password and keys are hidden to everyone.

GET http://127.0.0.1/users

Header authorization access_token

Get One User

Get a specific user. Just like the previous request. Admins will see more information.

GET http://127.0.0.1/users/:userId

:userId must be replaced by a username or a user id, for example

GET http://127.0.0.1/users/Marc

Header authorization access_token

Get Online

Get the list of active users, users are active if they logged in in the past 10 minutes. This request requires no access token, but provides no information other than the usernames.

GET http://127.0.0.1/online