<script type="text/javascript" src="https://js.garp.io/v0.3.0/atheios.js"></script>
<script type="text/javascript" src="https://js.garp.io/v0.3.0/atheios-api.js"></script>
<script type="text/javascript" src="https://js.garp.io/v0.3.0/hmac-sha256.js"></script>
In order to perform the test please enter Your private gametoken and gamesecret and set the connection to wss.atheios.org. The ones here set as default will not work for You. The token and secret can be generated on the portals. It really doesn't matter where You got the token from, it works cross currency.
Create also a gaming user on
and use it when logging in. Again the default values here will not work.
Step through the below items one by one to show the interaction with the portal. The code here can used for game development, but note that there will be API additions in the months to come. We will try to document things on garp.readthedocs.io.
Documentation reference: https://garp.readthedocs.io/en/latest/garp_v020/#authenticatedconnectrequest
Game tokenDocumentation reference: https://garp.readthedocs.io/en/latest/garp_v020/#gameinforequest
Using above GAMETOKEN
User name
User pass
AuthToken
UserId
AuthToken
UserId
GameId
Roomsize
AuthToken
UserId
GameId
Wage
Currency
AuthToken
UserId
PlayId
Score
AuthToken
UserId
PlayId
gameId