Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server.post('/api/messages', connector.listen());
- server.post('/api/messages', (req, res, next) => {
- request.post('endpoint', {
- json: {"text": req.body.text},
- }, (error, response, body) => {
- // how to send body as an outgoing chat message?
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement