hi @Tyrone62118 , are you looking to see scheduled events by passing just invitee email address?
There is a List Scheduled Event API, where you can pass invitee email as a query parameter without needing to pass scheduled event id. This will return all the scheduled events associated to that invitee email address. Would this help?
Hi
Thanks for the answer.
Theoretically yes, but practically no. It seems like a huge workaround and unnecessary load to get something that should just be passed already. Why pass the invitee_uid when its useless by itself?
For context, I am using this for students' booking lessons, using your suggestion, querying on email brings back 100’s of events because it brings back everything that student has booked. This is also paged, so multiple calls to get the full list. If I limit on the date as well, it could bring back max 14 events. I then have to loop through the 14 events and call the /invitees api and then loop through those results to match the uuid, and then call the api again to get that invitee information just to get the media url for the booking. That is 16 API requests, deserialisation and processing to get the information that could have been done in 1 request if the scheduledevent_uid had just been passed. Its not like they dont have it at that point, since you cannot have an invitee without a scheduled event.
The above would happen per complete student booking, and with potentially 100’s of students booking a minimum of 1 class a day that is 1000’s of unnecessary api calls, and definitely going to hit rate limiting or just break.
I dont believe that would be a viable solution under load and it seems like a huge oversight not to just pass the required event variable, as this would significantly reduce requests/lookups on their side, if the above method is currently the only way to achieve this.
Anyway, I managed to find the reason why the webhooks were working unreliably, which was due to how the client had set up users and assigned them to event templates. Updating the configuration and changing the webhook user scopes, sorted the webhook issue, so will stick with that for now as it appears to be stable under limited testing.
Thanks
@Tyrone62118 Glad to hear that webhook is working.
I have shared your feedback with the team and see what they recommend.