前提・実現したいこと
下記のエラーコードが発生します。
これはアクセスができないということでしょうか。
抽象的な質問になりますがご教示いただけますと幸いです。
発生している問題・エラーメッセージ
Exception: Request failed for https://api.line.me returned code 401. Truncated server response: {"message":"Authorization header required. Must follow the scheme, 'Authorization: Bearer <ACCESS TOKEN>'"} (use muteHttpExceptions option to examine full response)
該当のソースコード
GAS
function notifyLINE(){
const ACCESS_TOKEN = "----";
const USER_ID = "----";
let url = "https://api.line.me/v2/bot/message/push";
let headers = {
"Content-Type": "application/json;charaset=UTF-8",
"Authorization": "Bearer"+ACCESS_TOKEN
};
let message = "テスト通知です";
let data = {
"to": USER_ID,
"messages": [
{
"type": "text",
"text": message
}
]
};
let options = {
"method": "post",
"headers": headers,
"payload": JSON.stringify(data)
};
UrlFetchApp.fetch(url, options);
}

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。