/
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 EXAMPLES
  • string $gameids required - $games
  • string $available required - . Value of the variable looks like 787,789 or 787. Note that there nuber are EXAMPLES
  • string $validTo string(0) "" - Default = + 1 week 
  • string $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);
}

Related content