I recently read this guide on how to add an event listener for when someone books a meeting, but I saw it was from 4 years ago so I went to check if the event.data objects were accurate but couldn't find any docs on event.data. I was able to log the object coming through but can someone point me in the right direction for when I need to do something else with the event.data?
I posted the article I got a very similar solution from. I'm sure your solution works fine too, however my question was regarding the API documentation you used to find that solution. I can't find any docs on the event.data response. How would you have known listen for that response? I'm assuming you read some docs from hubspot or the lords of hubspot appeared in a burning bush to reveal their secrets. I'm hoping the former is true so I can create solutions in the future much like you did since I don't learn anything from just copy pasting solutions.
I did console logs to test it out so that tracks. I guess I know now hubspot adds messages on successful API calls. Trust me, I googled a plenty but also turned up nothing. I found API docs on Meetings but no response output like I would expect from API documentation.
Hey, @ECupaioli👋 Welcome to the community. I agree with you, using older resources can be help, but they run the risk of becoming obsolete or outdated.
The specifics of what is included in event.data can vary depending on the specific API or platform you're using. Without more information on the specific endpoint you're using, it's hard to provide guidance. Would you mind sharing more details about what you are using? That might help us to provide more targeted advice.
I'm using the Meeting Scheduler widget . There's an ad landing page and an API page for how to build your own, but nothing really on the widget and how to use event listeners with it. This is the code from the guide that works for me but I'm not clear on how that person got that info. It's the wisdom of the ancients without any proper docs.