问题
I have a working Zapier Webhook call from a .Net Web Application. However, I always receive "success" even when the Zap is turned off. Which I suppose makes sense--the "success" pertains to the webhook itself, not the Zap.
In my .Net Web Application, I want to raise an exception if the zap is turned off. How can I determine if a Zap is turned off?
I figure this answer is probably in some Zapier documentation, but I can't see to get a hit (I am sorta new to Zapier).
回答1:
David here, from the Zapier Platform team.
the "success" pertains to the webhook itself, not the Zap.
You've got it correct here. Hook ingestion happens separately from running zaps. The basic flow is this:
- Hook arrives
- We record it and put it into the processing queue
- We respond "succcess" if that happened without error (which it basically always should, we don't want to miss hooks!)
- One that hook reaches the front of our queue, we find the relevant zap and run it with the hook as input.
Since step 3 happens before step 4, we unfortunately can't return any info about the hook as part of that initial response. It's designed this way so that we can process tons of hooks very quickly. If we had to wait for the Zap query, it would slow down that process a lot.
The good news is, you can send all the hooks you like and we'll ignore the ones that aren't relevant.
Sorry I don't have a better answer!
来源:https://stackoverflow.com/questions/58174791/how-can-i-determine-if-a-zap-is-turned-off-when-i-call-a-zap-with-a-webhook