Hi @hassanaheer
Thanks for reaching out to the Zooom Developer Forum and welcome to our Community, I am glad you are here!
Unfortunately, we do not have an endpoint that you can call to access all webinars and all registrants.
You will need to programmatically do it, by calling each webinar to get all the registrants associated with it.
Yes I have done it with programming. To send two different URL
Task<Models.Webinars.WebinarMaster> GetWebinars()
{
return Task.Run(() =>
{
var webinars = new zoomwebinars.Models.Webinars.WebinarMaster();
var url = "https://api.zoom.us/v2/users/me/webinars";
var httpRequest = (HttpWebRequest)WebRequest.Create(url);
httpRequest.Accept = "application/json";
httpRequest.Headers["Authorization"] = $"Bearer your token*****";
var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
var webinar = streamReader.ReadToEnd();
webinars = WebinarMaster.FromJson(webinar);
}
return webinars;
});
}
// generate the list of against the webinar id
Task<Registrant.RegistrantMaster> Registrants(long webinarId)
{
return Task.Run(() =>
{
var getRegistrants = new RegistrantMaster();
var url = $"https://api.zoom.us/v2/webinars/{webinarId}/registrants/";
var httpRequest = (HttpWebRequest)WebRequest.Create(url);
httpRequest.Accept = "application/json";
httpRequest.Headers["Authorization"] = $"Bearer your token****";
var httpResponse = (HttpWebResponse)httpRequest.GetResponse();
using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
{
var registrants = streamReader.ReadToEnd();
getRegistrants = RegistrantMaster.FromJson(registrants);
};
return getRegistrants;
});
}