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; }
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']; }