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.
Does anyone have a simple C# example to get oauth token for REST api?
Collin Looby
Tyro
in API
I have been trying for about a week now, but no matter what format or combination I put into the request to the token endpoint I do not get back and good responses. Additionally, this is the flow with no user present, no sign on page and really is just server side. We are trying to create a script to mass update user accounts.
Thanks!
0
Answers
You are probably going to be better served by the SOAP API for this. Currently, the REST API doesn't have any endpoints for updating user details.
Panopto has a number of SOAP (and REST) API examples: https://github.com/Panopto/SOAP-API-Examples
Here is everything in C#: https://github.com/Panopto?q=&type=&language=c%23
I am not sure what specifically you are trying to do, but I would imagine it can be done if you just need to touch up some user details.
-Michael
Thanks for the reply Michael. I should have probably clarified a bit more with my initial post. We currently use the SOAP api quite extensively to do a number of operations. The one specific thing we are trying to do now is to migrate the personal folder content for one user to another user. Right now we can move the sessions easily enough, but we are not able to move the playlists which seems can only be done with the REST api. The specific part that I am struggling with right now is generating a correct request to the token endpoint.
Any help would be greatly appreciated!
Hi Collin,
Could you tell me what API Client type you are using, and what response you are getting?
Thanks,
Kevin
As this is the topmost result for getting an example token Panopto Rest in c#, you can see below for a commented example of how to get that token
https://github.com/mediaguycouk/PanoptoRest