public function stats($rsn)
    {
        $request = new Request('GET', sprintf($this->endpoints['hiscores'], $rsn));

        try {
            $response = $this->guzzle->send($request);
        } catch (RequestException $e) {
            throw new UnknownPlayerException($rsn);
        }

        return StatsRepository::factory($response->getBody());
    }
public function stats($rsn)
    {
        $request = new Request('GET', sprintf($this->endpoints['hiscores'], $rsn));

        try {
            $response = $this->guzzle->send($request);
        } catch (RequestException $e) {
            throw new UnknownPlayerException($rsn);
        }

        return StatsRepository::factory($response->getBody());
    }
public function stats ( $ rsn ) { $ request = new Request ( 'GET' , sprintf ( $ this -> endpoints [ 'hiscores' ] , $ rsn ) ) ; try { $ response = $ this -> guzzle -> send ( $ request ) ; } catch ( RequestException $ e ) { throw new UnknownPlayerException ( $ rsn ) ; } return StatsRepository :: factory ( $ response -> getBody ( ) ) ; }
Get a players statistics from the hiscores API feed

@return \Burthorpe\Runescape\RS3\Stats\Repository|bool

@throws \Burthorpe\Exception\UnknownPlayerException
Get a players statistics from the hiscores API feed