04-08-2022 03:23 AM - edited 04-08-2022 03:28 AM
04-13-2022 07:46 AM
The only other option for batch downloading recordings would be to use the NBR API. It does not require you to define the hostEmail for each host's recordings like the REST API does.
https://developer.cisco.com/docs/webex-meetings/#!nbr-web-services-api/overview
There is a python library on Github you can use as well.
https://github.com/gve-sw/DownloadWebexRecordingsSample
04-08-2022 03:24 AM
Hi @cmfan@mail.cgust.edu.tw If you're trying to pull recordings that belong to another host you need to be a full admin of the org,(which I confirmed you have the full admin role) have the admin related scope applied to the token and include the hostEmail query parameter in your request, like https://webexapis.com/v1/recordings?meetingId=1a9250c7d493427ead930da7xxxxx4d&hostEmail=abc@xzy.com. Since, we are unable to see the request you have made did you specify the hostEmail in your request? Also, if you're using the personal access token that's generated by the developer portal. You would need to create an integration with the appropriate scopes and use that to generate an access token and use this access token to make your request and then the values will be returned correctly.
These links discuss how integrations work.
https://developer.webex.com/docs/integrations
https://developer.webex.com/blog/real-world-walkthrough-of-building-an-oauth-webex-integration
https://developer.cisco.com/learning/lab/collab-spark-auth/step/1
04-13-2022 02:50 AM - edited 04-13-2022 02:55 AM
Hi @Patience Umoru thanks for support, I have build Integration for OAuth flow
and OAuth token is working nicely
here's what I have done:
GET https://webexapis.com/v1/people?orgId=<orgId>&max=1000
I get hundreds of accounts in my site
use a `for` loop to call recordings api, iterate by hostEmail which get from accounts list
response is success, and data is correct
but this is not a good approach for production, cause n+1 query problem
I have tried
but get response status code 401 and
{ "message": "Target method cannot access because of unauthorized", "errors": [ { "description": "Target method cannot access because of unauthorized" } ], "trackingId": "ROUTER_62569A48-BF8A-01BB-4F77-0AFE38534F77" }
is there any method can get all/multiple hosts recordings in one api call ? (ignore paged)
04-13-2022 03:33 AM
Hi @OHua You would need to define the hostEmail in order to pull recordings that belong to other hosts. This means that you would need to make multiple requests, one for every host, in order to pull all recordings for the site. It will not be possible to pull multiple host recording in one request using the https://developer.webex.com/docs/api/v1/recordings/list-recordings . However, the LstRecording will allow an admin to list all recordings that belong to the meeting site without having to define the individual host emails.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide