Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. server.post('/api/messages', connector.listen());
  2.  
  3. server.post('/api/messages', (req, res, next) => {
  4. request.post('endpoint', {
  5. json: {"text": req.body.text},
  6. }, (error, response, body) => {
  7. // how to send body as an outgoing chat message?
  8. })
  9. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement