Ejemplo n.º 1
0
 /**
  * @param array $fields
  *
  * @return array
  * @throws WebshopappApiException
  */
 public function update($fields)
 {
     $fields = array('variant' => $fields);
     return $this->client->update('variants/bulk', $fields);
 }
Ejemplo n.º 2
0
 /**
  * @param int $webhookId
  * @param array $fields
  *
  * @return array
  * @throws WebshopappApiException
  */
 public function update($webhookId, $fields)
 {
     $fields = array('webhook' => $fields);
     return $this->client->update('webhooks/' . $webhookId, $fields);
 }
Ejemplo n.º 3
-1
 function update($object_id = false, $data)
 {
     if ($this->update_request) {
         if ($object_id) {
             $fields = array($this->update_resource => $data);
             return $this->client->update($this->resource . '/' . $object_id, $fields, $this->update_resource);
         }
     }
 }