Skip to main content

Game List

Get list of games

Request Example

POST /serviceApi.php HTTP/1.1
Content-Type: application/json
https://stg.otkgaming.com/serviceApi.php
{
"action" : "gameList",
"platform" : 8,
"partnerId" : 1,
"currency" : "USD",
"time" : "24-03-2021 11:03:04",
"hash" : "36435dd6e55d8926e2b97c4ae7450bee"
}

Hash calculation example

https://stg.otkgaming.com
const crypto = require('crypto');

const privateKey = "providedPrivateKey";
const time = "24-03-2021 11:03:04";
const hash = crypto.createHash('sha256')
.update(privateKey + time)
.digest('hex');

console.log(hash);
Result

d8ac5ca5c416c1aeadca11013e6dbaa613248739d7c1ad19e6f7601d57d4699f


Options

Property NameDescriptioTypeNotes
actionrequest typestring
platformplatform identifierintegerunique per platform
currencybets are shown in passed parameterstringexample USD,EUR,BYN
partnerIdidentifier of partner on the platforminteger
timerequest timestringdd-mm-yyyy hh:mm:ss
hashcalculated sha256 string (privateKey provided game provider’s side)stringhash string is calculated based on privateKey, time, and "data" in JSON string. Example $hash = hash("sha256", "privateKey15-02-2023 15:31:31json_encode(data)");

Response Example

https://stg.otkgaming.com/serviceApi.php
{
"code" : 0,
"message" : "ok",
"data": {
"slots": [
{
"id" : 1,
"gameName" : "Blazing Hot",
"bets" : [0.02,0.04,0.06],
"thumbnail" : "https://otkgaming.com/gameThumbnails/1.jpg",
"status" : 1
},
{
"id" : 2,
"gameName" : "Diamond Flash",
"bets" : [0.02,0.04,0.06],
"thumbnail" : "https://otkgaming.com/gameThumbnails/2.jpg",
"status" : 1
}
]
}
}