I am calling External web api (.net Core) with Bearer Authorization Token from google AppScript but getting Bearer Token null. I tried from Postmann it is working properly but from appscript i am getting Authorization Null.
Here is my google App Script Code:,
var headers = { Authorization: 'Bearer Token' };
var requestOptions = { 'method': 'GET', 'header':headers, 'redirect': 'follow', 'muteHttpExceptions':true };
var res=UrlFetchApp.fetch('myapp/api/getxml', requestOptions); //Add RESTAPI Endpoint where var json=res.getContentText(); Logger.log(res);

here in header i am getting null in authorization.
I hope you can help me in this.
Regards:
Hassan Shabbir
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/e49d3182-de63-413f-8f84-3c574139142bn%40googlegroups.com.