/** * Helper method for making a call to the Panopto API */ private function call_web_method($methodname, $namedparams = array(), $auth = true) { $soapvars = $this->get_panopto_soap_vars($namedparams); // Include API user and auth code params unless $auth is set to false. if ($auth) { $authvars = $this->get_panopto_soap_vars($this->authparams); $mergedvars = array_merge($soapvars, $authvars); $soapvars = $mergedvars; } // Store action for use in overridden __doRequest. $this->currentaction = "http://services.panopto.com/IClientDataService/{$methodname}"; // Make the SOAP call via SoapClient::__soapCall. try { return parent::__soapCall($methodname, $soapvars); } catch (Exception $e) { echo "<div style='color:red;'> Error:" . $e->getMessage() . "</div>"; error_log("Error:" . $e->getMessage()); error_log("File: " . $e->getFile()); error_log("Line: " . $e->getLine()); error_log("Trace: " . $e->getTraceAsString()); } }
/** * Helper method for making a call to the Panopto API */ private function call_web_method($methodname, $namedparams = array(), $auth = true) { $soapvars = $this->get_panopto_soap_vars($namedparams); // Include API user and auth code params unless $auth is set to false. if ($auth) { $authvars = $this->get_panopto_soap_vars($this->authparams); $mergedvars = array_merge($soapvars, $authvars); $soapvars = $mergedvars; } // Store action for use in overridden __doRequest. $this->currentaction = "http://services.panopto.com/IClientDataService/{$methodname}"; // Make the SOAP call via SoapClient::__soapCall. return parent::__soapCall($methodname, $soapvars); }