Zoom API- Extracting meeting attendees in recursive loop
Channel: AUTOHOTKEY Gurus
Date: 25/02/2021

I've previously shown how you can use the Zoom API for extracting meeting attendees however I didn't handle what to do if you have more attendees than you can get via one API call.   In the Zoom API you can control how many attendees are extracted using the page_size parameter.  Zoom used to have a limit of 100 members however, in this video, we see they've increased the max pulled to 300.  You can read more about the Zoom API call for getting meeting registrants here:  https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingregistrants

Or the zoom API in general here: https://marketplace.zoom.us/docs/api-reference/introduction

APIs are an amazing way to interreact vendors.  Normally I'd have to login with a web browser, navigate to the meeting, hit a button to build the list, then download a file and remove fields that I don't want and format the file.  Now I launch my script and extract all members in the blink of an eye!  

In this video Isaias Baez (RaptorX / AHKTuts) helps me adjust the adjust 

You can get the code here: https://gist.github.com/fe5d51d8fdebf88d5f51b7c25cd6c2ea   (Don't forget to get your own API Token and meeting number)
TLDR: The key idea of the video is to demonstrate how to extract meeting attendees using the Zoom API by implementing pagination and a recursive loop to iterate through each page of data.

1. 00:00 📝 The speaker modified the Zoom API call to retrieve meeting attendees in batches and created a test scenario to ensure functionality, discussing pagination for retrieving multiple pages.
 1.1 The speaker modified the Zoom API call to retrieve meeting attendees in batches of 100 or less per page, and created a test scenario with five registrants to ensure the functionality of retrieving multiple pages.
 1.2 To work with the Zoom API, start by searching for the documentation online to get an idea of how it works.
 1.3 The speaker discusses using the Zoom API to extract meeting attendees and explains the concept of pagination for retrieving multiple pages of registrants.

2. 03:04 📝 The speaker discusses using pagination in the Zoom API to extract meeting attendees by making requests for each page using the next page token.
 2.1 The maximum number of request parameters for the Zoom API is now 300, and the speaker discusses how to send a query as a parameter to the API call and receive a response from the server.
 2.2 The speaker explains how to use pagination in the Zoom API to extract meeting attendees by making requests for each page using the next page token.

3. 05:44 📝 Extract meeting attendees using Zoom API by implementing a recursive loop to iterate through each page of data until there is no next page token.
 3.1 The speaker explains how to extract meeting attendees using the Zoom API by implementing a recursive loop to iterate through each page of data until there is no next page token.
 3.2 Build a query string that contains the next token and starts with the first page token, progressing to the next one when available.

4. 08:20 💡 Use a while loop with a break statement to avoid infinite loops and ensure variables contain something, while also being cautious of non-existent functions.
 4.1 The speaker discusses the importance of ensuring variables contain something in a loop and suggests using a while loop with a break statement to avoid infinite loops, while also mentioning a potential issue with a non-existent function.
 4.2 Include the necessary files and libraries in order to run the code smoothly.

5. 11:50 📝 The speaker explains how to extract meeting attendees using the Zoom API, suggesting the use of a recursive loop and demonstrating a script that retrieves the information.
 5.1 The speaker discusses the process of extracting meeting attendees using the Zoom API and mentions the need to check the logic step by step to ensure accuracy, suggesting the use of an "until while" loop instead of a regular while loop.
 5.2 The speaker demonstrates a hack to extract meeting attendees by using a recursive loop and obtaining a next page token to continue retrieving information.
 5.3 The speaker demonstrates a script that extracts meeting attendees in a recursive loop and runs it to show the output.

6. 15:54 🔍 The speaker explains how to extract meeting attendees using the Zoom API, mentioning the correct query reading process and the importance of checking the page count in the object.

7. 19:38 📺 The speaker suggests removing breaks and executing the code to display the total response, using output debug to check the response text, and mentions the dynamic nature of the next page token

8. 23:52 📝 The speaker explains different ways to extract meeting attendees using the Zoom API, emphasizing the importance of pagination and iterating through each page of data.