<?php

require_once __DIR__ . '/../lib/Kaltura/autoload.php';
require_once __DIR__ . '/../vendor/autoload.php';
$rootClient = \Kmig\Helper\Client::getRootClient('http://kaltura.local', '*****@*****.**', 'Kaltura1!');
/** @var Kaltura_Client_Type_Partner $partner */
$partner = \Kmig\Helper\Client::createPublisher('kaltura.local', 'Kaltura1!', $rootClient);
$config = $rootClient->getConfig();
$url = $config->serviceUrl . '/admin_console';
\Kmig\Helper\Client::setPartnerPassword($url, '*****@*****.**', 'Kaltura1!', $partner->id, $partner->adminEmail, 'Kaltura2!');
echo "\nadminEmail: {$partner->adminEmail}\npassword: Kaltura2!\n";
Esempio n. 2
0
 /**
  * @return \Kaltura_Client_Client
  */
 protected function _client($ignoreUserId = false)
 {
     if ($ignoreUserId || !$this->_withEntitlement) {
         return $this->_container['client'];
     } else {
         list($privacyContext, $sessionKey) = $this->_withEntitlement;
         if (!array_key_exists($privacyContext . '::' . $sessionKey, $this->_userClients)) {
             $this->_userClients[$privacyContext . '::' . $sessionKey] = Helper\Client::getClient($this->_container['partnerId'], $this->_container['serviceUrl'], $sessionKey, $this->_container['partnerAdminSecret'], $privacyContext);
         }
         return $this->_userClients[$privacyContext . '::' . $sessionKey];
     }
 }
Esempio n. 3
0
<?php

require_once __DIR__ . '/../lib/Kaltura/autoload.php';
require_once __DIR__ . '/../vendor/autoload.php';
\Kmig\Helper\Client::deletePartner('kaltura.local', '*****@*****.**', 'Kaltura1!', '118');