예제 #1
0
파일: MatchesAPI.php 프로젝트: Alewex/H5Api
 public function getMatches($modes = false, $start = false, $count = false)
 {
     $url = "https://www.haloapi.com/stats/h5/players/{$this->gamertag}/matches?modes={$modes}&start={$start}&count={$count}";
     $request = parent::__construct($url, $this->api->key);
     $request = json_decode($request->response);
     return $request;
 }
예제 #2
0
파일: ProfileAPI.php 프로젝트: Alewex/H5Api
 public function getEmblem($size = 512)
 {
     $url = "https://www.haloapi.com/profile/h5/profiles/{$this->gamertag}/emblem?size={$size}";
     $request = parent::__construct($url, $this->api->key);
     return $request->responseInfo['url'];
 }