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); }
public static function delete($id) { new static(Beyonic::sendRequest(static::$endpoint, 'DELETE', $id)); }