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.
API Access to caption file
Zac Miller-Waugh
Tyro
in API
Kia ora,
From my understanding, according to the session API documentation, it is possible to programmatically request information about a session, including the link to download a session's captions. However, from my experimentation requesting this endpoint (for example https://[host].panopto.com/Panopto/Pages/Transcription/GenerateSRT.ashx?id=[sessionid]&language=1
) with a bearer token from the API authentication steps results in a blank page (returning 200) unless the session is public. How can I programmatically access a session's captions, and why doesn't the above strategy work?
1
Answers
Hi Zac,
The URL for getting captions does not currently accept access tokens for authorization but will accept a cookie for a logged-in user. We have a public REST API endpoint that will accept an access token for authorization and return a cookie that can be used to call the endpoint to retrieve a session's captions:
The endpoint has no required parameters, but does require a valid access token in the Authorization header of the request. If the token is valid, then the response headers will include an .ASPXAUTH cookie that can be added to the request to get the captions.
I hope this helps. Please let me know if you have any questions.
Thanks,
Kevin