/
4.1 addFreeRounds() *
4.1 addFreeRounds() *
Gives $players $available free rounds for the $game. They are valid until $validTo.
public addFreeRounds( [ string $title = string(0) "" , string $players , string $games , string $available , string $validTo , string $validFrom = string(0) "" ] )
Parameters
string
$title = string(0) "" - Default = ""string
$playerids required - . Value of the variable looks like 220650,124144 or 220650. Note that there nuber are EXAMPLESstring
$gameids required - $gamesstring
$available required - . Value of the variable looks like 787,789 or 787. Note that there nuber are EXAMPLESstring
$validTo = string(0) "" - Default = + 1 weekstring
$validFrom = string(0) "" - Default = ""string
$betLevel = string(0) "" - Default = min (or min, mid, max)
Return Values
type
- String
Example: The value of paramater $players can be: 220650,124144,2359283 or just 220650
The same is with the parameter $games
REST REQUEST
Array ( [api_password] => xapitest [api_login] => xapitest [method] => addFreeRounds [tittle] => freeround 1 [playerids] => 220650,124144 [gameids] => 787,789 [available] => 4 [validTo] => 2016-05-11 [currency] => EUR )
REST RESPONSE
ON ERROR
1,addFreeRounds: [text error]
ON SUCCESS
0,{"created":[number of players that freeRounds were given]}
Source Code
public function addFreeRounds($title = '', $players, $games, $available, $validTo = null, $validFrom = null, $betLevel = null){ return $this->client->addFreeRounds($title, $players, $games, $available, $validTo, $validFrom, $betLevel); }
, multiple selections available,
Related content
Seamless integration
Seamless integration
Read with this
6.1 addFreeRounds()
6.1 addFreeRounds()
More like this
20) Seamless interface F.A.Q.
20) Seamless interface F.A.Q.
Read with this
6.2 getFreeRounds()
6.2 getFreeRounds()
More like this
1.2 getGame() *
1.2 getGame() *
Read with this
7.2 getFeatureBuy()
7.2 getFeatureBuy()
More like this