google scriptเพื่อทำงานร่วมกับ line notify เพื่อส่งมากกว่าหนึ่งToken
Posted: Wed Nov 28, 2018 3:00 pm
google scriptเพื่อทำงานร่วมกับ line notify เพื่อส่งมากกว่าหนึ่งTokenต้องทำอย่างไรครับ
function sendHttpPost(message){
var token = ["qlL6c5Amrbfq7ChUCNTpwja3htfo68SCO5YHpu1o2iu"];
var options =
{
"method" : "post",
"payload" : "message=" + message,
"headers" : {"Authorization" : "Bearer "+ token}
};
UrlFetchApp.fetch("https://notify-api.line.me/api/notify",options);
ลองแบบนี้แล้วไม่มีการส่ง
function sendHttpPost(message){
var token = ["qlL6c5Amrbfq7ChUCNTpwja3htfo68SCO5YHpu1o2iu","asM6c5Adfgfbfq7ChUCNTpwja3htfo68SCO5YHpu1o2iu"];
var options =
{
"method" : "post",
"payload" : "message=" + message,
"headers" : {"Authorization" : "Bearer "+ token}
};
UrlFetchApp.fetch("https://notify-api.line.me/api/notify",options);
function sendHttpPost(message){
var token = ["qlL6c5Amrbfq7ChUCNTpwja3htfo68SCO5YHpu1o2iu"];
var options =
{
"method" : "post",
"payload" : "message=" + message,
"headers" : {"Authorization" : "Bearer "+ token}
};
UrlFetchApp.fetch("https://notify-api.line.me/api/notify",options);
ลองแบบนี้แล้วไม่มีการส่ง
function sendHttpPost(message){
var token = ["qlL6c5Amrbfq7ChUCNTpwja3htfo68SCO5YHpu1o2iu","asM6c5Adfgfbfq7ChUCNTpwja3htfo68SCO5YHpu1o2iu"];
var options =
{
"method" : "post",
"payload" : "message=" + message,
"headers" : {"Authorization" : "Bearer "+ token}
};
UrlFetchApp.fetch("https://notify-api.line.me/api/notify",options);