feedly\Models\FeedlyModel::fetch PHP Method

fetch() public method

public fetch ( )
    public function fetch()
    {
        if (!is_string($this->getEndpoint())) {
            throw new RuntimeException('An endpoint must be set');
        }
        return $this->client->get($this->getApiBaseUrl() . $this->getEndpoint());
    }

Usage Example

 /**
  * @expectedException Exception
  */
 public function testFetchFailureOnEmptyEndpoint()
 {
     $client = new FeedlyModel('SOMETOKEN');
     $client->fetch();
 }