Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.
Request: Sort /api/v1/sessions/{id}/viewers by LastViewedDateTime (Newest First)
in API
Hello,
We’re using /api/v1/sessions/{id}/viewers
to retrieve PercentCompleted
and record students’ viewing progress.
The problem is scale: we have 5,000 students (and 15,000 in December), so we end up paging through as many as 150 pages each time.
Currently, /api/v1/sessions/{id}/viewers
appears to be ordered by the user’s username.
Would it be possible to return the list sorted by LastViewedDateTime
in descending order?
If this is supported, we would only need to capture the most recent viewers, which means calling just 1–2 pages instead of ~150. That would drastically reduce our API calls.
We would greatly appreciate your help.
Thank you.
0
Answers
Hi Kiwon,
Unfortunately our API doesn't support this at the moment. I'll create internal work item so we can work on expanding this endpoint firstly with page size and then by other types of sort.
Thanks,
Adis