/** * */ public function create() { $requestOptions = new RequestOptions(); $requestOptions->addPostParams(['name' => $this->name, 'email' => $this->email, 'password' => $this->password]); if (!isset($this->id)) { throw new \Exception("Parameter 'id' is required. It is a GET parameter."); } return PhrestSDK::getResponse(self::METHOD_PUT, sprintf($this->path, $this->id), $requestOptions); }
/** * */ public function create() { $requestOptions = new RequestOptions(); $requestOptions->addPostParams(['name' => $this->name, 'email' => $this->email, 'password' => $this->password]); return PhrestSDK::getResponse(self::METHOD_POST, $this->path, $requestOptions); }