Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Retrieves player sessions per given date / game.


Parameters

  • string $api_login required
  • string $api_password required
  • string $method required value 'getGameHistory'
  • string $user_username required  - see loginPlayer method
  • string $user_password required  - see loginPlayer method
  • string $game_id optional  - In numeric format 1234, or gamehash format gs#gs-power-tiger.
  • string $gamesession_id optional - string format returned from getGameDirect or getGame call.
  • string $provider optional - string format 2 characters. If gamesession_id is not provided, then you can pass 'provider' to filter the query.
  • string $date_start required - In Y-m-d H:I:S format, UTC timezone (Aug. 9 2012 is represented as '2012-08-09 00:00:00')
  • string $date_end optional - In Y-m-d H:I:S format, UTC timezone (Aug. 9 2012 is represented as '2012-08-09 00:00:00') 

  • string $return_format optional 'data' or 'url'. Default value is 'data' 

  • int $page_number optional when 'data' format is passed, 1 by default. Determines current page returned.

  • int $items_per_age optional when 'data' format is passed, 10 by default. Determines how many items returned per page. Maximum value 100.

  • boolean $return_round_details optional Defaults to false, if this parameter is sent, gamesession_id is mandatory. Sends you gameplay information (bet,win) for that session.


    Info

    Results are limited to 10 sessions. For more sessions use pagination.

    Parameters game_id,gamesession_id and provider are filters, and will filter out data in the date range between date_start and date_end.


Return Values

Code Block
languagephp
titleREST REQUEST
POST data

Array
(
    [api_login] => xapitests2s
    [api_password] => xapitest
    [method] => getGameHistory
    [gameid] => 2159
    [gamesession_id] => pq_210640-59522613478e2
    [user_username] => test2
    [user_password] => d22a5985fe6183d51a21d6c9ffa6ab3fb4f7321c
    [render] => json
    [date_start] => 2016-06-25 07:27:30
    [return_format] => data
	[currency] => EUR
)

...