Database input and Zapier

Hello,

I’m trying to import database input from wix to zapier and also from zapier to Database live.
How can I do those triggers? I think I need to use hooks, someone can make a example code?

Thank you very much
Edoardo

Hi Edoardo,

To update Zapier every time your collection changes you will need to add a hook for afterInsert/afterUpdate that uses fetch to update zapier’s end-point.

To learn about hooks see here

Allowing an external resource to update a site collection is achieved by implementing http-functions.