Update June 2023: zoom.us discontinued the use of JWT for authorization, and it is completely disabled now. So this method below is not working. Please check the Zoom API reference for valid approaches to registrations.
In recent times the ZOOM app became very popular for creating and attending online meetings and webinars. As a web developer, more often than not, you would be required to interact somehow with their APIs. Either to register users to a meeting or to retrieve some users’ or registrants’ data for further processing.
Recently I had some requests to bulk register attendees to an upcoming meeting by simply reading this personal data from a CSV file, and using ZOOM’s JWT API to register them to specific meeting IDs.
So I created a little PHP Class that’ll help me bulk register users to a ZOOM meeting
Prerequisites:
- Your host user has to have some kind of paying account. The free one will not have an option to require user registration for a meeting.
- You have to create an APP by going to https://marketplace.zoom.us/develop/create and choose JWT.
- Follow the steps and create your “App Credentials”. Copy the JWT Token from there as shown below:
Now, get the Zoomer.php class from the git repo and upload it to your site’s root, or if used standalone, you can just run it through PHP from whichever server you find most convenient. And run it through the browser. You can as well run it through PHP CLI from a console.
Please have a look at the README file. You would have to change a couple of params in the class itself so to be able to run it properly, like ZOOM meeting ID and your previously retrieved ZOOM JWT Key.
I hope you’ll find it useful as I did recently.