Esempio n. 1
0
 public function send()
 {
     $values = array();
     foreach ($this as $prop => $value) {
         if ($prop != 'endpoint') {
             $values[$prop] = $value;
         }
     }
     return Beyonic::sendRequest($this->endpoint, 'PUT', $this->id, $values);
 }
Esempio n. 2
0
 public static function delete($id)
 {
     new static(Beyonic::sendRequest(static::$endpoint, 'DELETE', $id));
 }