Operator needs to make EnterGame() API request to RGS API which allows the player to enter the game. RGS API validates player’s credentials, creates and registers session ID (token) at DG back-end, builds the launch URL and sends it back to the caller.
EnterGame() Request
Type | Input |
---|---|
HTTP Method | POST |
API URL | https://<API_BASE_URL>/games/enter-game/ |
Headers | "Content-Type": "application/json" |
POST Parameters | json object e.g.: |
Parameters | Type | Description |
---|---|---|
api_key | String | API Key allocated to each front-end |
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 with promotions |
username | String | Player’s username. Note: in ‘fun’ mode arbitrary username should be used, e.g. “username” : “fun” |
password | String | Player’s password. Note: in ‘fun’ mode arbitrary password should be used, e.g. “password” : “fun” |
lobby_user | String(optional) | home or lobby url, this will be used for home button in the UI . |
EnterGame() 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=kingofgods&category=slots&
amount_type=1&reality_check=120"
}
}
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. |