I have a question related to meeting.ended webhook.
We are created the meeting by using request body bellow:
private String buildJsonCreateMeetingRequest(String topic, String meetDescription,
LocalDateTime startTime) {
try {
ZoomCreateMeetingRequest request = ZoomCreateMeetingRequest.builder()
.topic(topic)
.type(2)
.agenda(meetDescription)
.duration(40)
.startTime(startTime.toString())
.timezone(“UTC”)
.settings(Settings.builder()
.joinBeforeHost(true)
.meetingAuthentication(false)
.jbhTime(0)
.privateMeeting(true)
.build())
.build();
return objectMapper.writeValueAsString(request);
} catch (JsonProcessingException e) {
logger.error(“Error processing JSON request”, e);
return StringUtils.EMPTY;
}
}
Imagine that we have only 2 participant, whos are not a host. We are getting a request to the webhook when the meeting ended, but the problem is when the first participant entering to the meeting and exit the webhook was trigered, I understand that this is a correct work, but how can I manage or add specific setting to getting webhook only when the two participant entered and after that exit? What shpuld I have to do if I want that webhook trigered only when 2 participant entered and meeting has 2 participant at the same time and after that when they exit and meeting will be had 0 participant I have got a webhook?
I need to set up a webhook to receive notifications only when a meeting has exactly two participants. The webhook should be triggered when both participants leave, so that I receive notifications only when the meeting has exactly two participants.