I am making a medical appointment booking application and using calendly for bookings. I am able to save scheduled event for the first time into db through js event successfully but not able to capture re-schedule event.
function isCalendlyEvent(e) {
return e.data.event && e.data.event.indexOf('calendly') === 0;
};
window.addEventListener(
'message',
function(e) {
if (isCalendlyEvent(e)) {
console.log(e.data);
}
}
);
I am able to capture scheduled event through "calendly.event_scheduled" event but not able to capture re-schedule event data.