const token = ScriptApp.getOAuthToken() /** Generated by Apps Script */
const res = UrlFetchApp.fetch(url,{
'headers':{'Authorization':'Bearer '+token},
'method':'GET',
'contentType': 'application/json',
"muteHttpExceptions":true
})
Please where I am getting wrong and suggest solution.
Thanks in Advance.