API Endpoint(s) and/or Zoom API Event(s)
Description
I am trying to find an efficient way to retrieve a list of registration-enabled meetings
(scheduled and upcoming). Currently I do the following:
- retrieve all account users:
$zoom->doRequest(‘GET’, ‘/users’, [‘status’=>‘active’]); - cycle through users and retrieve all meetings:
$zoom->doRequest(‘GET’, ‘/users/{userId}/meetings’, $params, [‘userId’ => $user[‘id’]]); - cycle through each meeting and retrieve full meeting details:
$zoom->doRequest(‘GET’, ‘/meetings/{meetingId}’, $params, [‘meetingId’ => $meetingSummary[‘id’]]);
Don’t mind the params variable – it just passes the page_size and scheduled type. The meeting details in step 3 includes the [settings][approval_type] value, where 2 = registration. But step 2+3 is very inefficient. I have to retrieve ALL events and run an additional API call to get the full details before I can filter out just the registration-enabled meetings.
Is anyone aware of a more performant solution? I’ve combed through the doc and the shortcoming seems to be with the users/{userId}/meetings API call – I can’t filter by the approval_type and it doesn’t return that value, so I’m forced to retrieve all meetings and cycle through them.