Page 1 of 1

How to WebHooks in NodeJS

Posted: Tue Dec 14, 2021 11:24 am
by bkromer
Hey there,

I read in the documentation that it is also possible to register and handle WebHooks from a NodeJS script.
https://www.enfocus.com/manuals/Develop ... oints.html

But I don't understand the example code. I want to register a WebHook on a specific path receive JSON data work with that data and then give the result back as webhook response instead of the standard {status:true}.

Can somebody provide a starter code?

Re: How to WebHooks in NodeJS

Posted: Tue Dec 14, 2021 12:05 pm
by laurentd
We created NodeJS examples available here: https://github.com/EnfocusSW
The latest one, eCommerce, does what you describe.
The webinar recording is available in Enfocus Learn, Switch, Scripting:
https://www.enfocus.com/en/learn/switch#scripting