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
Type | Input |
---|---|
HTTP Method | POST |
API URL | https://<API_BASE_URL>/games/game-launch/ |
Headers | "Content-Type": "application/json" |
POST Parameters | json object e.g.: |
Parameters | Type | Description |
---|---|---|
api_key | String | API Key allocated to each front-end |
session_id | String | Session ID created for the player during login |
provider | String | Game Provider. DragonGaming™ here. |
game_type | String | Type of Game (eg: slots, table_games, scratch_cards) |
game_id | Integer | Game ID provided by the provider |
platform | String | Channel in which player is playing the game. Ex: desktop, mobile |
language | String | Language the game will be played in |
amount_type | String | Mode of Play For Example: ‘real’ – when playing with real cash ‘fun’ – when playing fun mode ‘promo_freespin’ – when playing promotions |
lobby_url | String | Home or Lobby URL of the operator |
deposit_url | String | Deposit URL of the operator |
context | JSON Object | JSON object containing player details such as first name, last name, username, country, gender, agent_id** etc. |
* 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 Object | Type | Description |
---|---|---|
launch_url | JSON Object | Key launch_url contains the Game Launch URL as value that is used to launch the game. |