feedly\Models\FeedlyModel::persist PHP Method

persist() public method

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

Usage Example

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