public function fetch()
    {
        $data = $this->get($this->getLocation())
            ->status('200')
            ->contentType('application/json')
            ->getJson();

        $this->exchangeArray($data);

        return $this;
    }
public function fetch()
    {
        $data = $this->get($this->getLocation())
            ->status('200')
            ->contentType('application/json')
            ->getJson();

        $this->exchangeArray($data);

        return $this;
    }
public function fetch ( ) { $ data = $ this -> get ( $ this -> getLocation ( ) ) -> status ( '200' ) -> contentType ( 'application/json' ) -> getJson ( ) ; $ this -> exchangeArray ( $ data ) ; return $ this ; }
Fetches the resource.

@throws ConnectorException        When the API replies with an error response
@throws RequestException          When an error is encountered
@throws \RuntimeException         On an unexpected API response
@throws \RuntimeException         If the response content type is not JSON
@throws \InvalidArgumentException If the JSON cannot be parsed
@throws \LogicException           When Guzzle cannot populate the response

@return self
Fetches the resource .