Hello,
I finished the tutorial for Webhooks but now I’m stuck.
app.post('/page_viewed', addon.authenticate(), function (req, res) {
console.log("Account ID " + req.body.userAccountId + " viewed page '" +
req.body.page.title + "' at URL '" + req.body.page.self + "'.");
I now can build a response, right? Maybe I can do something with status codes? Can someone provide an example?
Is it possible to now start interaction with the user like pop a message “Hurray it’s your 100 visit of this page”. ? I’m not sure how I can puzzle that together after all tutorials.
I need a bit start-up assistance.
thanks
Marco