You are here

function KalturaClient::startSession in Kaltura 5

Same name and namespace in other branches
  1. 6 kaltura_client/kaltura_client.php \KalturaClient::startSession()

File

kaltura_client/kaltura_client.php, line 1704

Class

KalturaClient

Code

function startSession($kalturaSessionUser, $secret, $admin = null, $privileges = null, $expiry = 86400) {
  $params = array();
  $params["secret"] = $secret;
  $this
    ->addOptionalParam($params, "admin", $admin);
  $this
    ->addOptionalParam($params, "privileges", $privileges);
  $this
    ->addOptionalParam($params, "expiry", $expiry);
  $result = $this
    ->hit("startsession", $kalturaSessionUser, $params);
  return $result;
}