Skip to content

Instantly share code, notes, and snippets.

@PamornT
Created October 20, 2019 20:08
Show Gist options
  • Save PamornT/3f5e01ece31a16a352d61ce41c4e93f8 to your computer and use it in GitHub Desktop.
Save PamornT/3f5e01ece31a16a352d61ce41c4e93f8 to your computer and use it in GitHub Desktop.
const reply = (token, payload) => {
return request.post({
uri: `${LINE_MESSAGING_API}/reply`,
headers: LINE_HEADER,
body: JSON.stringify({
replyToken: token,
messages: [payload]
})
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment