Getting a list of games
Overview
| Request type | URL |
|---|---|
| GET | <server-pixmove-games>/game/list |
This method allows you to get an up-to-date list of games.
Notice
The request is executed by the partner.
Parameters
Request
Optional fields are excluded from hash calculations.
Optional* fields are included in hash calculations only if they are provided.
| Name | Type | Description | |
|---|---|---|---|
| partnerId | bigint | Unique partner identifier | |
| class | string | optional* | Game class (instant, slot, table) |
| hash | string | Signature (sha256 from encryption string) | |
| icons | boolean | optional | Flag indicating the need to return all sizes of game icons (default = false) |
String to hash
“game_list” + partnerId + class* + apiKey
Response
| Name | Type | Description |
|---|---|---|
| games | array | Array with games |
games array parameters (for each game):
| Name | Type | Description |
|---|---|---|
| id | bigint | Unique game identifier |
| title | string | Game’s name |
| class | string | Game’s class (instant, slot, table) |
| icon | string | Game icon URL |
| icons | object | Object with game icons ({ extension: url }) |
| freespin | boolean | Flag indicating whether freespins are available in the game |
| bonusBuy | boolean | Flag indicating whether the bonus buy feature is available in the game |
Example
Request
js
{
partnerId: 1,
hash: 'f01729f278481b7934b9c859fdbf030195e924e2e17d99b925ec2bff4655dfc2'
}Response
js
{
status: 'success'
data: {
games: [{
id: 1,
title: 'Pirate dice',
class: 'instant,
icon: '.../icon/1.png',
icons: {
'128x128': '.../icon/1.png',
'256x256': '.../icon/2.png'
},
freespin: true,
freebet: true (legacy),
bonusBuy: false
}]
}
}Errors
Possible error messages:
| Message | Description |
|---|---|
| RequiredParamsNotFound | Incorrect number of parameters in the request |
| InvalidParamType | Incorrect type of parameter |
| PartnerNotFound | Partner with such partnerId not found |
| IncorrectHash | Incorrectly calculated hash |
| ServerError | Sever error |