EnterGame() API

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

TypeInput
HTTP MethodPOST
API URLhttps://<API_BASE_URL>/games/enter-game/
Headers"Content-Type": "application/json"
POST Parametersjson object e.g.:
{
"api_key": "1pghjl4v5apt2bks",
"provider": "dragongaming",
"game_type": "slots",
"game_id": 1032,
"platform": "desktop",
"language": "en",
"amount_type": "real",
"username": "test_username",
"password": "passt84fas28",
"lobby_url": "",
}
ParametersTypeDescription
api_keyStringAPI Key allocated to each front-end
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 with promotions
usernameStringPlayer’s username.
Note: in ‘fun’ mode arbitrary username should be used, e.g. “username” : “fun”
passwordStringPlayer’s password.
Note: in ‘fun’ mode arbitrary password should be used, e.g. “password” : “fun”
lobby_userString(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 ObjectTypeDescription
launch_urlJSON ObjectKey launch_url contains the Game Launch URL as value that is used to launch the game.