Ejemplo n.º 1
0
 /**
  * @param array $fields
  *
  * @return array
  * @throws WebshopappApiException
  */
 public function create($fields)
 {
     $fields = array('webhook' => $fields);
     return $this->client->create('webhooks', $fields);
 }
Ejemplo n.º 2
0
 function create($object)
 {
     if ($this->create_request) {
         $data = array($this->create_resource => $object);
         return $this->client->create($this->resource, $data, $this->create_resource);
     }
 }