/
5.2 getDailyReport()

5.2 getDailyReport()

Retrieves the player statistics per given date.

Date passed must not be for current day.

public getDailyReport( string $date [, int $associateid = integer 0 ] )

Parameters

  • string $date required - In Y-m-d format (Aug. 9 2012 is represented as '2012-08-09')
  • int $associateid integer 0 - Associate id for which to retrieve reports, default = 0

Return Values

  • array
returned data example
// returned data example
    array (
 'casino' =>     //array containing data with normal games
     array (
         455 =>
         array (
         'playerid' => '455',
         'date' => '2012-08-08',
         'bet' => '4.00',
         'win' => '8.00',
         'net' => '-4.00',
         'username' => 'Samuele',
         ),
         473 =>
         array (
         'playerid' => '473',
         'date' => '2012-08-08',
         'bet' => '3.00',
         'win' => '1.00',
        'net' => '2.00',
         'username' => 'nico',
         ),
         160 =>
         array (
         'playerid' => '160',
         'date' => '2012-08-08',
         'bet' => '2016.00',
         'win' => '1917.00',
         'net' => '99.00',
         'username' => 'C3AC001',
      ),
 ),
'poker' =>       //array containing data with poker games
     array (
         455 =>
         array (
         'playerid' => '455',
         'date' => '2012-08-08',
         'bet' => 291.18,
         'win' => 300.83,
         'rake' => 13.55,
         'tournament' => 0,
         'fin' => -133.43,
         'username' => 'Samuele',
         ),
     )
REST REQUEST
Array
(
	[api_password] => xapitest
	[api_login] => xapitest
	[method] => getDailyReport
	[date] => 2012-09-19
	[associateid] => 0
	[currency] => EUR
)
REST RESPONSE
{
  "error": 0,
  "response": {
    "casino": {
      "982167": {
        "id": "4983",
        "playerid": "982167",
        "date": "2019-07-11",
        "bet": 10.8,
        "win": 4.71,
        "tbet": "0.00",
        "twin": "0.00",
        "net": 6.09,
        "gamesPlayed": 13,
        "rake": 0,
        "fin": 0,
        "jackpotContribution": "0.0000",
        "jackpotContributionWin": "0.0000",
        "freeWin": "0.00",
        "bonusBet": "0.00",
        "bonusWin": "0.00",
        "tip": "0.00",
        "fee": "5.00",
        "tournament": 0,
        "rbet": "0.00",
        "system": "es,bs",
        "username": "z09981855",
        "username_real": "981855",
        "associateid": "0"
      }
    },
    "poker": [],
    "allowed_systems": [
      "es",
      "bs"
    ],
    "each_system": {
      "es": {
        "982167": {
          "id": "4983",
          "playerid": "982167",
          "date": "2019-07-11",
          "bet": "2.00",
          "win": "4.00",
          "tbet": "0.00",
          "twin": "0.00",
          "net": "-2.00",
          "gamesPlayed": "2",
          "rake": "0.00",
          "fin": "0.00",
          "jackpotContribution": "0.0000",
          "jackpotContributionWin": "0.0000",
          "freeWin": "0.00",
          "bonusBet": "0.00",
          "bonusWin": "0.00",
          "tip": "0.00",
          "fee": "5.00",
          "tournament": "0.00",
          "rbet": "0.00"
        },
        "bs": {
        "982167": {
          "id": "3689",
          "playerid": "982167",
          "date": "2019-07-11",
          "bet": "0.40",
          "win": "0.15",
          "tbet": "0.00",
          "twin": "0.00",
          "net": "0.25",
          "gamesPlayed": "4",
          "rake": "0.00",
          "fin": "0.00",
          "jackpotContribution": "0.0000",
          "jackpotContributionWin": "0.0000",
          "freeWin": "0.00",
          "bonusBet": "0.00",
          "bonusWin": "0.00",
          "tip": "0.00",
          "fee": "0.00",
          "tournament": "0.00",
          "rbet": "0.00"
        }
      }
    }
  },
  "currency": "EUR"
}

Meaning

Player ID
Source Code
public function getDailyReport($date,$associateid = 0){
    return $this->client->getDailyReport($date,$associateid);
}

Related content