Skip to content

Using the API

Sam Collins edited this page Nov 20, 2016 · 1 revision

Authorisation

The application is designed to use OAuth 2 a secure protocols used by many large sites such as GitHub and Facebook.

The system is designed to be as flexible as possible giving opportunities for single sign on and desktop/mobile applications.

You can setup your own 'Personal Access Tokens' or OAuth clients in the developer area at developer/api.

Setting up OAuth Client

https://mattstauffer.co/blog/introducing-laravel-passport

Using a token

Make a request to one of our api routes with the following headers:

Content-Type: application/json
Accept: application/json
Authorization: Bearer TOKEN

Replace TOKEN with your token, keeping the space between it and bearer.

Scopes

You can also view the scopes in the developer section: This list is not finished

  • view-self: Can view there own player
  • view-players: Can view players
  • edit-players: Can edit players
  • edit-staff: Can edit staff
  • rcon: Can issue rcon commands
Clone this wiki locally