function kaltura_get_partner_details in Kaltura 5
Same name and namespace in other branches
- 6.2 includes/kaltura.admin.inc \kaltura_get_partner_details()
- 6.2 includes/kaltura.install.inc \kaltura_get_partner_details()
- 6 includes/kaltura.admin.inc \kaltura_get_partner_details()
- 7.3 includes/kaltura.admin.inc \kaltura_get_partner_details()
- 7.2 includes/kaltura.admin.inc \kaltura_get_partner_details()
1 call to kaltura_get_partner_details()
- kaltura_settings_form in includes/
kaltura.admin.inc
File
- includes/
kaltura.admin.inc, line 117
Code
function kaltura_get_partner_details($partner_id, $cms_email, $cms_password) {
$session_user = KalturaHelpers::getSessionUser();
$config = KalturaHelpers::getServiceConfiguration();
$config->partnerId = $partner_id;
$kaltura_client = new KalturaClient($config);
$result = $kaltura_client
->getPartner($session_user, $cms_email, $cms_password, $partner_id);
if ($result['result']['partner']['id']) {
return array(
$result['result']['partner']['id'],
$result['result']['subp_id'],
$result['result']['partner']['url2'],
$result['result']['partner']['secret'],
$result['result']['partner']['adminSecret'],
);
}
else {
return array(
FALSE,
$result['error'],
);
}
}