Welcome to the Panopto Community

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.

Using folder search API issue.

Hi All,

I'm new to use Panopto REST API.

I created a API client in our Panopto test environment, and request access token for service is successfully. When I try using the access token to call Folders search API, no matter what the keyword I'm using, the results is empty, I use the same keyword in GUI search I can get some results. Did I something wrong? Hope someone can help, give some suggestions, or give me a sample searchQuery.

Thanks in advance.


Regards,


Chen Rui

Best Answers

Answers

  • Kevin BaumKevin Baum Panopto Employee

    Hi Rui,

    I just tested this against one of my test sites, and was able to get results. I used a call similar to this:

    https://<panoptoserver>/Panopto/api/v1/folders/search?searchQuery=test

    Would you be able to send me an example of the call you are making (without any tokens or authorization information)? If so I would be happy to take a look at it.

    Thanks,

    Kevin

  • Hi Kevin

    Thanks for your help. I don't what I did wrong, I try searchQuery=test, get empty result also.

    Here is the API call I used https://suss-test.ap.panopto.com/Panopto/api/v1/folders/search?searchQuery=ACC201

    ACC201 is a course code, should be part of the Panopto folder name. is that OK?

    The results I get: {"Results":[]}

    This is the document I learn how to get access token for services. https://support.panopto.com/s/article/oauth2-for-services

    Best Regards,

    Chen Rui

  • Hi Kevin

    Thanks for your explanation. I'll try out the access Token for user.

    What I'm creating an application to search video results from different source, include our Panopto, so before I get any search results, I hope there is no user "interfere". My understanding OAuth2 needs user to "confirm" before, then server give a "code", with this code, I can get access Token. how can I get ride of this "Confirm" in Panopto?

    I appreciate your helps.

    Best Regards,

    Chen Rui

  • Hi Kevin

    noted, thanks,

    Regards,

    Chen Rui

  • Hi Kevin

    I tried to generate access token for user.

    The step 1.3a, When I send user to Authentication URL, I got this error (see below). any idea what's wrong? thanks,

    Best Regards,

    Chen Rui

  • Hi Kevin

    thanks for your help, problem solved.

    is it good if the error message is more specific?


    Regards,

    Chen Rui

  • edited September 2020

    Hello, Chen Rui, Can you please share the solution, as I am also facing this error.

Sign In or Register to comment.