app.post('/webhook', (req, res) => { var response console.log(req.headers) console.log(req.body) const message = `v0:${req.headers['x-zm-request-timestamp']}:${JSON.stringify(req.body)}` const signature = `lj5423j54235423` if (req.headers['x-zm-signature'] === signature) { if (req.body.event === 'endpoint.url_validation') { response = { message: { plainToken: req.body.payload.plainToken, encryptedToken: 'retwertwertewr5432fgds' }, status: 200 } console.log(response.message) res.status(response.status) res.json(response.message) } } })
public ActionResult Hooksd(HttpRequest req, RestResponse res) { ... }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)