Automating usage report ingest
We are working on pulling in usage information from Panopto as part of our learning analytics offering for the new academic year. We are looking at using the viewing of a session in place of a physical attendance check in, so are hoping to automate as much as possible.
We've made good progress and have the reports from the system bu we want to work out how we can automate the final step of the data import process, and pick up the daily reports we are creating automatically. I assume it's a case of passing the correct report type to the GetRecentReports SOAP command, but the PHP library doesn't seem to contain the defined types for our Session and System reports, and my guesses at what the values could be didn't seem to work either. I've tried this: https://support.panopto.com/resource/APIDocumentation/Help/html/7de68277-7586-8a8f-e9fc-d2edce3e9e8f.htm
At the moment I have to cut and paste the report IDs from the email notifications for each type of report into the appropriate place in the code.
I've used both the Panopto PHP API library and a manually crafted SOAP call and both return empty results. Here's my manual call:
I was expecting X recent StatsReportStatus elements, but the result is empty:
<GetRecentReportsResult xmlns:a="http://schemas.datacontract.org/2004/07/Panopto.Server.Services.PublicAPI.V40" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
I must be missing something, somewhere, but both the library and the manual version do the same, so I'm a bit confused. Maybe it's a permissions issue? I created the daily reports using the same api-warehouse user, though.
If I change the reportType to something invalid it errors out (e.g. I've tried the numeric equivalent of the type, 6), so the request looks to be parsed correctly in the API it just doesn't give us any results.
Any guidance welcome!