Difference between revisions of "WebAPI"
|Line 28:||Line 28:|
Latest revision as of 19:00, 1 January 2014
The game allows players to share their data with other players or just backup their savegames and teams. For this to work, they need a forum account and log into it from within the game.
The current implementation of the server side is written in php and is located in src/tools/webapi/.
We are using a SimpleMachines API for doing the authentication against the forum user credentials.
The client side code is located in src/client/web/. There are some console commands available for the file management. They are all prefixed by web_ (as well as the available cvars). Available commands are:
Their usage should be printed to the game console when they are issued without any parameters.
Every user could theoretically run it's own webserver with the webapi installed and just redirect the webapi calls by changing the cvars:
An example download url could be:
The corresponding upload url could be: