The domain name you must use for all requests is www.classicube.net
It is heavily suggested that you always include a trailing slash with your request.
You must include a Host: www.classicube.net header with your request - otherwise you will get a 'direct IP access not allowed' error page.
You will be sent a cookie labelled 'session' - you must send this with every request in order for the API to work.
> signifies an example of incoming data (data that you will recieve).
< signifies an example of outgoing data (data that you will send).
Documentation for retrieving information about servers, and sending server heartbeats
Documentation for retrieving information about players
Use: Authenticates you with the site, and allows you to do things that require authentication.
Send a GET request to /api/login/ to get the "token", then send a POST request to the same page with the following parameters:
< GET /api/login/ > { > "username": null, > "authenticated": false, > "token": "f033ab37c30201f73f142449d037028d", > "errors": [] >} < POST /api/login/ < username=AndrewPH&password=examplePassW0rd&token=f033ab37c30201f73f142449d037028d > { > "username": "AndrewPH", > "authenticated": true, > "token": "33e75ff09dd601bbe69f351039152189", > "errors": [] > }
Use: Returns your external IP address.
Send a GET request to /api/myip/
< GET /api/myip > 127.0.0.1