-
Notifications
You must be signed in to change notification settings - Fork 0
Using the API
Sam Collins edited this page Nov 20, 2016
·
1 revision
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
.
https://mattstauffer.co/blog/introducing-laravel-passport
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.
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