GetGames() API
This API request allows the operator to receive a full list of our games which are enabled for their particular frontend. If no games are enabled, the response would return as “empty”.
POST /games/get-games/
JSON
Host: https://test-api.netgaming.com/v1/
{
"api_key": "1pghjl4v5apt2bks"
}
Request Body
Parameters | Type | Description |
api_key | String | API Key allocated to each frontend |
Response Example
{
"result": {
"slots": [{
"ageofdavinci": {
"game_id": 5,
"game_name": "ageofdavinci",
"game_title": "Age Of Da Vinci",
"category": "slots",
"supplier": "netgaming",
"story": "Excited to travel back?",
"logos": [{
"url": "https://games.netgaming.com/images/lobby/200x150/ageofdavinci.png",
"width": "200",
"height": "150"
},
{
"url": "https://games.netgaming.com/images/lobby/400x300/ageofdavinci.png",
"width": "400",
"height": "300"
}
],
"launch_params": [{
"width": 800,
"height": 600,
"resizable": true,
"scrollbars": false,
"type": "browser",
"launch_type": "new_window",
"window_title": "%full_site_code%_%category%",
"channel": "desktop",
"launch_url": "https://games.netgaming.com/game_launcher.php? session_id=%session_id%&channel=desktop&full_site_code=PFRLXOP&language=%language%&jurisdiction=%jurisdiction%&game_name=%game_id%&category=slots&amount_type=%amount_type%&reality_check=%reality_check%&gameName=%gameName%&deposit_url=%deposit_url%&lobby_url=%lobby_url%&rcpTimer=%rcpTimer%&rcpTimeElapsed=%rcpTimeElapsed%&rcp_timer=%rcp_timer%&rcp_time_elapsed=%rcp_time_elapsed%&homeurl=%homeurl%&username=ng1"
},
{
"type": "browser",
"launch_type": "same_window",
"channel": "mobile",
"launch_url": "https://games.netgaming.com/game_launcher.php?session_id=%session_id%&channel=mobile&full_site_code=PFRLXOP&language=%language%&jurisdiction=%jurisdiction%&game_name=%game_id%&category=slots&amount_type=%amount_type%&reality_check=%reality_check%&gameName=%gameName%&deposit_url=%deposit_url%&lobby_url=%lobby_url%&rcpTimer=%rcpTimer%&rcpTimeElapsed=%rcpTimeElapsed%&rcp_timer=%rcp_timer%&rcp_time_elapsed=%rcp_time_elapsed%&homeurl=%homeurl%&username=ng1"
}
],
"amount_types": [{
"id": "cash",
"value": 1,
"name": "Play"
},
{
"id": "bonus",
"value": 2,
"name": "Play"
}
]
}
}],
"scratch_cards": []
}
}
getgames error response
Any response would be provided in JSON format. Display Type: dictionary. The dictionary contains two keys names "error" and "error_details". If an error occurs, the error key will contain the value 1 and the error_details key would contain the information detailing that specific error. Any displayed messages would be setup as appropriate to each error.
{
"error": 1,
"error_detail": {
"id": 2015,
"code": "INVALID_API_KEY",
"message": "API Key is invalid."
}
}