Best option/s for hosting webhook?
So I'm building a webhook for my site (webflow, wized and xano stack). I want to make a post req when 'cms_item_created'. Would there be a better choice between axios or node? Whats the best option for hosting, considering i'm looking to do this for multiple sites?
7 Replies
Hey Mick!
The fetch API is stable in node now but last I used the Webflow API in node I still had to use Axios. Depending on what your other dependencies are, I would use fetch as a first choice and Axios if that doesn’t work.
I like to host these on Cloudflare workers. Alex iglesias has@some good tutorials on that on the finsweet channel.
Xano might have stuff for webhooks too but I'm not familiar with Xano!
@Mick.D - I just tested and you should be able to do all this in Xano.
Step 1: Create API endpoint in Xano.
Step 2: Create Webhook in Webflow
If you have a little more detail on your use case I can provide a more detailed example
@Mick.D here's what I would do...
https://youtu.be/CcaGq_tm-nU
Thanks for being a Patreon subscriber!
Thanks Keegan! Your video has helped a lot. I did some digging with Xano and found a custom function for handling webhooks. Heres a video of what I found 🙂 https://www.loom.com/share/7323641b5fea4f0ebde8d9c80ed12099?sid=d445597a-bcbe-44f7-91b0-dcd2e94aca5b
Loom
Zanu Documentation and Custom Functions
Hey Keegan, I hope you're doing well! In this video, I found some Zanu documentation and a Zanu video on custom functions, specifically related to webhooks. I'll show you how to use the
Hey @Mick.D jsut watched!
So you figured out what you need?
Can you explain a bit more about what the overall goal is?
i.e. "When a user enters a CMS item in Webflow I want it to populate in Xano and then send a notification..."
the main thing I'm wondering is what your "source of truth" is. I imagine it's Xano but wanted to double check because if Xano is the source of truth I don't know why you want to trigger a webhook on the cms_item_created event!
and thanks for the sick pad! I wish I could live on bigboi drive in a cool $1M casa 😂
Yup i figured out what i needed! The overall goal was to post new cms entries to my xano endpoint. Which your earlier video pretty showed me how to do 🙂
I also created delete and update webooks for the same site. Essentially syncing the CMS with Xano, so I guess in this case, they're both the source of truth 😂
ok - def recommend trying to go with a single source of truth if you can! will save you headaches in the long run.