You are here

function KalturaPartnerService::getUsage in Kaltura 6.2

File

kaltura_client/KalturaClient.php, line 4613

Class

KalturaPartnerService

Code

function getUsage($year = "", $month = 1, $resolution = "days") {
  $kparams = array();
  $this->client
    ->addParam($kparams, "year", $year);
  $this->client
    ->addParam($kparams, "month", $month);
  $this->client
    ->addParam($kparams, "resolution", $resolution);
  $this->client
    ->queueServiceActionCall("partner", "getUsage", $kparams);
  if ($this->client
    ->isMultiRequest()) {
    return null;
  }
  $resultObject = $this->client
    ->doQueue();
  $this->client
    ->throwExceptionIfError($resultObject);
  $this->client
    ->validateObjectType($resultObject, "KalturaPartnerUsage");
  return $resultObject;
}