I am using the get meetings API to retrieve a list of upcoming scheduled meetings, I am showing the results to my users, then the user selects one upcoming meeting from the list and proceed to register (using the add registrant API).
The get meetings API returns a list of meetings objects but the occurrence_id field is not present in the object, this makes it hard to add a registrant since the occurrence_id field is necessary in the add registrand API.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
My current solution is to call the get meeting API, the response has an occurrences object for that specific meeting, then I lookup the occurrence_id by matching the start_time of the occurrence selected by the user and the start_time in the occurrences objects.
My solution feels wrong… It needs an extra call and relies on a time property instead of an ID.
Is there another way to tackle this problem?
Appreciate any feedback.