Retrieves player sessions per given date / game.
string
$api_login requiredstring
$api_password requiredstring
$method required value 'getGameHistory'string
$user_username required - see loginPlayer methodstring
$user_password required - see loginPlayer methodstring
$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.
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. |
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 ) |
// returned data example for return_format url {"error":0,"response":"http:\/\/test.dev\/players\/gamehistory\/listsessions\/?system=pq&sessionid=210640-59522613478e2&gameId=2159&date_start=2016-06-25+07%3A27%3A30&return_format=url&playerId=223136&hash=ec945cb57ceca77dd96de76e6afc0440ef5bc219","return_format":"url"} //returned data example for the default return_format 'data' {"error":0,"response":[{"time":"2017-06-27 11:32:03","description":"Pq Sportsbook","gameid":"2159","gamehash":"px_pq-sportsbook","sid":"210640-59522613478e2","url":"http:\/\/test.dev\/players\/gamehistory\/MjQzNTUx"},{"time":"2017-06-27 11:33:03","description":"Pq Sportsbook","gameid":"2159","gamehash":"px_pq-sportsbook","sid":"210640-59522613478d2","url":"http:\/\/test.dev\/players\/gamehistory\/MjQzNTUz"}], "return_format":"data", "page_number": 1, "pages_total": 10, "items_per_page": 50, "items_current_page": 50, "items_total": 500 } |