Skip to content

Instantly share code, notes, and snippets.

@PamornT
Created September 7, 2019 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PamornT/3cd659ecabf3739d2161e967d2e85eb6 to your computer and use it in GitHub Desktop.
Save PamornT/3cd659ecabf3739d2161e967d2e85eb6 to your computer and use it in GitHub Desktop.
const reply = req => {
return request({
method: "POST",
uri: `${LINE_MESSAGING_API}/reply`,
headers: LINE_HEADER,
body: JSON.stringify({
replyToken: req.body.events[0].replyToken,
messages: [
{
type: "text",
text: JSON.stringify(req.body)
}
]
})
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment