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