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