Created
May 29, 2022 16:57
-
-
Save PamornT/7c8722b38e4a30b4176c19f53607d148 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 = async(replyToken, messages) => { | |
const axios = require("axios") | |
const data = { replyToken, messages } | |
const headers = { | |
'Authorization': `Bearer ${channelAccessToken}`, | |
'Content-Type': 'application/json' | |
} | |
axios.post('https://api.line.me/v2/bot/message/reply', data, { | |
headers: headers | |
}) | |
.catch((error) => { | |
console.log(error) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment