line-api-msg
Version:
I write japanese at bottom.
35 lines (34 loc) • 863 B
JavaScript
var request = require('request');
module.exports = {
header: {
'Content-Type': 'application/json; charset=UTF-8',
'Authorization': 'Bearer wLCYWrjei0uny5lHZIxJXR3ApEMwViyv1U0VmmHPmLWW59YZ5kTpcdwcuiYtaRKidfdRqYnLOhXjUj6IqgRbgKQBJIU5bTpZ2EQrSHSbEvqdGhsX3fp5sbZK9BqUtsCs9j06oDZHVGqruDVMvwvzXAdB04t89/1O/w1cDnyilFU=',
},
replyData: {
url: 'https://api.line.me/v2/bot/message/reply',
method: 'POST',
headers: {},
json: true,
body: {
"replyToken": "",
"messages": [],
}
},
pushData: {
url: 'https://api.line.me/v2/bot/message/push',
method: 'POST',
headers: {},
json: true,
body: {
"to": "U60a453b22a2394acbf8f16d3883288b6",
"messages": [],
}
},
sendFunc: (sendFuncData) => {
request(sendFuncData, function (error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
}
});
}
};