How to WebHooks in NodeJS

Post Reply
bkromer
Member
Posts: 99
Joined: Thu Jul 11, 2019 10:41 am

How to WebHooks in NodeJS

Post 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?
Benjamin
laurentd
Member
Posts: 137
Joined: Wed Mar 13, 2019 2:06 pm

Re: How to WebHooks in NodeJS

Post 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
Laurent De Wilde, Solution Architect @ Enfocus
Post Reply