match history contains few method to retrive .see example :

$doProcess = new doProcess();

 $matchHistory = $doProcess->fetchMatchHistoryByPlayerName('avtana',null,25);

f($matchHistory){

echo $matchHistory->getStatus();  

echo $matchHistory->getNum_results() ;

echo $matchHistory->setResults_remaining();

echo $matchHistory->getTotal_results();

print_r($matchHistory->getMatches)

}

we have varity off methods to fetch history :

  • $doProcess->fetchMatchHistoryByPlayerName($player_name,$start_at_match_id,$matches_requested)

  • $doProcess->fetchMatchHistoryByAccountId($account_id,$start_at_match_id,$matches_requested)

  • $doProcess->fetchMatchHistoryByHeroId($hero_id,$start_at_match_id,$matches_requested)

  • $doProcess->fetchMatchHistoryBySkill($skill,$start_at_match_id,$matches_requested)

  • $doProcess->fetchMatchHistoryByDate($date_min,$date_max,$start_at_match_id,$matches_requested)

  • $doProcess->fetchMatchHistoryByDateMin($date_min,$start_at_match_id,$matches_requested)

  • $doProcess->fetchMatchHistoryByDateMax($date_max,$start_at_match_id,$matches_requested)

  • $doProcess->fetchMatchHistoryByLeagueId($league_id,$start_at_match_id,$matches_requested)

  • they are all clear by there names what they are donig .

    and returned object have these methods :

    • $matchHistory->getStatus() - result status
    • $matchHistory->getNum_results() - the number of results contained in this response
    • $matchHistory->getTotal_results() - the total number of results for this particular query [(total_results / num_results) = total_num_pages]
    • $matchHistory->getResults_remaining() - the number of results left for this query [(results_remaining / num_results) = remaining_num_pages]
    • $matchHistory->getMatches() - an array of num_results matches:

      each match support only these methods :

      • $match->getMatch_id() - the numeric match ID
      • $match->getStart_time() - date in UTC seconds since Jan 1, 1970 (unix time format)
      • $match->getLobby_type() - the type of lobby (0 for human matchmaking, 1 for co-op bot)
      • $match->getPlayers() - an array of players:

          each player support only these methods :

        • $player->getAccount_id() - the player's 32-bit Steam ID
        • $player->getPlayer_slot() - an 8-bit number: if the left-most bit is set, the player was on dire. the two right-most bits represent the player slot (0-4)
        • $player->getHero_id() - the numeric ID of the hero that the player used
        • $player->getHero() - the hero object