GameLaunch() API

Operator needs to make GameLaunch() API request to RGS API to get game launch URL. Though game launch URL would have been sent already in GetGames() API call response, it allows RGS API to register the session, builds the launch URL and sends it back to the caller.

GameLaunch() Request

TypeInput
HTTP MethodPOST
API URLhttps://<API_BASE_URL>/games/game-launch/
Headers"Content-Type": "application/json"
POST Parametersjson object e.g.:
{
"api_key": "1pghjl4v5apt2bks",
"session_id": "b6ef88a8054e328f4459b625baf38fae71981a34",
"provider": "dragongaming",
"game_type": "slots",
"game_id": "5",
"platform": "desktop",
"language": "en",
"amount_type": "real",
"lobby_url": "",
"deposit_url": "",
"context": {
"id": "1232",
"username": "username",
"country": "GB",
"currency": "GBP"
}
}
ParametersTypeDescription
api_keyStringAPI Key allocated to each front-end
session_idStringSession ID created for the player during login
providerStringGame Provider. DragonGaming™ here.
game_typeStringType of Game (eg: slots, table_games, scratch_cards)
game_idIntegerGame ID provided by the provider
platformStringChannel in which player is playing the game. Ex: desktop, mobile
languageStringLanguage the game will be played in
amount_typeStringMode of Play
For Example:

‘real’ – when playing with real cash
‘fun’ – when playing fun mode
‘promo_freespin’ – when playing promotions
lobby_urlStringHome or Lobby URL of the operator
deposit_urlStringDeposit URL of the operator
contextJSON ObjectJSON object containing player details such as first name, last name, username, country, gender, agent_id** etc.
Notes:
* When amount type is fun, please send random session_id, 0 as player_id, ‘fun_player’ as username in context as we have uniform API for game launch.

** Agent_id parameter is optional. However, once the agent_id is given for a particular player for the first time it will be recorded in our database along side with player id and it will remain the same even if a different ID is being sent by the operator.

GameLaunch() Response + Example

Response would be in JSON format. Type: dictionary.

{"result": {
"launch_url": "https://games.dragongaming.com/game_launcher.php?
session_id=b6ef88a8054e328f4459b625baf38fae71981a34&channel=desktop&
full_site_code=PFMNGOP&language=en&game_name=twindragons&category=slots&
amount_type=1&reality_check=120&lobby_url=<lobby_url>&
deposit_url=<deposit_url>"
}
}
Object/Key in Response ObjectTypeDescription
launch_urlJSON ObjectKey launch_url contains the Game Launch URL as value that is used to launch the game.