Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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'];
 }