Using PHP to access UsageReporting SOAP API
I work in our Data Warehouse group and we are trying to access usage statistics from Panopto Videos. I've seen the examples of accessing the SOAP APIs in Python, but we don't have anyone with Python skills available to us. I have written several PHP processes to access APIs, including SOAP. I created a rather simple example of calling the 'DescribeReportTypes' function since it's only parameter is the Authentication Info. I appear to be able to access the API, but get this message when I run my code:
PHP Fatal error: Uncaught SoapFault exception: [s:Client] "Unable to authenticate the user."
Here is the simple PHP code I am using:
$client = new SoapClient(ENDPOINT);
$params = array('AuthCode' => '', 'Password' => PASSWORD, 'UserKey' => USERNAME);
$result = $client->DescribeReportTypes($params);
I'm not sure if the Authentication Info is being passed correctly or if there's a problem with the username/password in Panopto. I also created a Client API, so I have a Client Name, Id, and Secret if that can be used to access UsageReportiing.
Any assistance would be greatly appreciated.