Created
September 23, 2019 14:33
-
-
Save PamornT/0dcbe0fc6c93d01532f4a037f2668231 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const reply_track = (req, payload) => { | |
return request({ | |
method: `POST`, | |
uri: `${LINE_MESSAGING_API}/reply`, | |
headers: LINE_HEADER, | |
body: JSON.stringify({ | |
replyToken: req.body.events[0].replyToken, | |
messages: [ | |
{ | |
"type": "flex", | |
"altText": "สถานะการส่งของ", | |
"contents": { | |
"type": "carousel", | |
"contents": [payload] | |
} | |
} | |
] | |
}) | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment