route = ['accounts/current']; $this->actor->sendGET($this->getUrl()); } public function changePassword($currentPassword = null, $newPassword = null, $newRePassword = null) { $this->route = ['accounts/change-password']; $this->actor->sendPOST($this->getUrl(), [ 'password' => $currentPassword, 'newPassword' => $newPassword, 'newRePassword' => $newRePassword, ]); } public function changeUsername($currentPassword = null, $newUsername = null) { $this->route = ['accounts/change-username']; $this->actor->sendPOST($this->getUrl(), [ 'password' => $currentPassword, 'username' => $newUsername, ]); } }