/userAuth to authenticate a player against a specific game and receive a signed URL that launches that game in their browser. You supply the player’s ID from your system, the game they want to play, and their preferred language. GitSlotPark validates the request and returns a gameURL containing an embedded session token.
Endpoint
https://api.gitslotpark.com with the base URL provided to you by GitSlotPark.
Request parameters
Your API token provided by GitSlotPark.
Your Partner ID assigned by GitSlotPark.
The player’s ID in your system.
The identifier of the game to launch. Obtain this value from the
/gameList endpoint.The player’s preferred language code. See the supported languages table below.
HMAC-SHA-256 signature of the concatenated request parameters using your secret key, expressed as an uppercase hex string. For this endpoint the signature input is:
agentID + userID + gameID.Example request
Response fields
Result code.
0 indicates success; any other value indicates an error. See result codes below.Authenticated URL to redirect the player to. Present when
result is 0. This URL contains an embedded session token that allows the player to start playing immediately.Example success response
Result codes
| Code | Meaning |
|---|---|
0 | Success |
1 | General error |
2 | Wrong input parameters |
3 | Invalid sign |
4 | Invalid agent |
5 | User not found |
7 | Invalid API token |
Using the game URL
Supported languages
Pass one of the following codes in thelanguage field to set the game interface language for the player.
| Language | Code |
|---|---|
| English | en |
| French | fr |
| German | de |
| Italian | it |
| Korean | kr |
| Turkish | tr |
| Portuguese | pt |
| Indonesian | id |
| Spanish | es |
| Chinese | zh |
| Ukrainian | uk |
| Russian | ru |