Currencies
Request Example
POST /serviceApi.php HTTP/1.1
Content-Type: application/json
https://stg.otkgaming.com/serviceApi.php
{
"action" : "currencyList",
"platform" : 8,
"partnerId" : 1,
"hash" : "36435dd6e55d8926e2b97c4ae7450bee"
}
| Property Name | Descriptio | Type | Notes |
|---|---|---|---|
| action | request type | string | |
| platform | platform identifier | integer | unique per platform |
| partnerId | identifier of partner on the platform | integer | |
| hash | calculated sha256 string (privateKey provided by the game provider’s side) | string | Hash string is calculated based on privateKey and "data" in JSON string. Example: |
| $hash = hash("sha256", "privateKey" . json_encode(data)); |
Response Example
- Success
- Rejected
https://stg.otkgaming.com
{
"code": 0,
"message": "ok",
"data": {
"currencies": [
{
"name": "USD",
"symbol": "$"
},
{
"name": "EUR",
"symbol": "€"
},
{
"name": "GBP",
"symbol": "£"
}
]
}
}
https://stg.otkgaming.com
{
"code" : 8,
"message" : "hash not valid",
"data" : null
}
{
"code" : 9,
"message" : "platform not valid (partnerid or platform values are wrong",
"data" : null
}