/
1.5 getGame() *
1.5 getGame() *
Retrieves the desired game embed url for the gameId provided. Games with embed_code will be returned as NULL, please use getGameDirect.
This function is deprecated! Please use method getGameDirect which returns 'url' or 'embed_code' and works for 100% of the games.
public getGame( int $gameid [, string $lang = string(2) "en" , string $play_for_fun = bool FALSE ] )
Parameters
int
$gameidrequired - GameId you recieve from getGameList()string
$lang= string(2) "en" - Lang 2 char language string, for example 'en' or 'cn', not all languages are supportedstring
$play_for_fun= bool FALSE - Play_for_fun open game in play for fun mode
Return Values
string
- Containing the embed url
Name | Value | Description |
---|---|---|
gamesession_id | string (255 characters) | enable tracking the player game sessions that is unique per game launch |
sessionid | string (255 characters) | enable tracking of player sessions that is unique per login |
REST REQUEST
Array ( [api_password] => xapitest [api_login] => xapitest [method] => getGame [lang] => en [user_id] => 123 //deprecated [user_username] => domendomen2 [user_password] => 687ee8d988b2411bfc6983c4fca2f6c622819ac8 [gameid] => 568 [play_for_fun] => 0 [currency] => EUR )
REST RESPONSE
{"error":0,"response":"https:\/\/www.game-program.com\/casino\/frontend\/EmbeddedGame\/EmbeddedGame.swf?gameId=99&gameSWF=thePiramid.swf&sessionHash=test ","new_parameter_example":"value_123","gamesession_id":"gs9834ndasd","sessionid":"123-898sdjkaERRA"}
SOAP RESPONSE
// returned url is to be embedded in this manner, or in a popup window `iframe src="http://www.example.com/"`
Source Code
public function getGame($gameid,$lang = 'en',$play_for_fun = false){ if(is_numeric($gameid) && $gameid > 0){ return $this->client->getGame($gameid,$lang,$play_for_fun); } }
, multiple selections available,
Related content
1.3 getGameDirect() *
1.3 getGameDirect() *
More like this
1.2 getGame() *
1.2 getGame() *
More like this
1.3 getGameDirect()
1.3 getGameDirect()
More like this
5.4 getGameHistory() *
5.4 getGameHistory() *
More like this
4.1 getGameHistory() *
4.1 getGameHistory() *
More like this
getGame
getGame
More like this