. // // @ignore // =================================================================================================== /** * @package Kaltura * @subpackage Client */ class Kaltura_Client_AdminUserService extends Kaltura_Client_ServiceBase { function __construct(Kaltura_Client_Client $client = null) { parent::__construct($client); } function updatePassword($email, $password, $newEmail = "", $newPassword = "") { $kparams = array(); $this->client->addParam($kparams, "email", $email); $this->client->addParam($kparams, "password", $password); $this->client->addParam($kparams, "newEmail", $newEmail); $this->client->addParam($kparams, "newPassword", $newPassword); $this->client->queueServiceActionCall("adminuser", "updatePassword", $kparams); if ($this->client->isMultiRequest()) return $this->client->getMultiRequestResult(); $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_AdminUser"); return $resultObject; } function resetPassword($email) { $kparams = array(); $this->client->addParam($kparams, "email", $email); $this->client->queueServiceActionCall("adminuser", "resetPassword", $kparams); if ($this->client->isMultiRequest()) return $this->client->getMultiRequestResult(); $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); return $resultObject; } function login($email, $password, $partnerId = null) { $kparams = array(); $this->client->addParam($kparams, "email", $email); $this->client->addParam($kparams, "password", $password); $this->client->addParam($kparams, "partnerId", $partnerId); $this->client->queueServiceActionCall("adminuser", "login", $kparams); if ($this->client->isMultiRequest()) return $this->client->getMultiRequestResult(); $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); if(!$resultObject) $resultObject = array(); $this->client->validateObjectType($resultObject, "string"); return $resultObject; } function setInitialPassword($hashKey, $newPassword) { $kparams = array(); $this->client->addParam($kparams, "hashKey", $hashKey); $this->client->addParam($kparams, "newPassword", $newPassword); $this->client->queueServiceActionCall("adminuser", "setInitialPassword", $kparams); if ($this->client->isMultiRequest()) return $this->client->getMultiRequestResult(); $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); return $resultObject; } }