Blank response from UrlFetchApp in Google App Script
问题 I'm trying to test the endpoints of an API and all the responses return blank with no errors. I've tested using curl and the response actually has data in: curl --request GET https://myapiurl.com/endpoint --header "authorization: bearer TOKEN" Here's the segment of GAS code. The token property is set when I run a POST call to retrieve it, it expires after a while: var url = 'https://myapiurl.com/endpoint'; var token = 'bearer TOKEN'; var headers = { 'authorization': token }; var options = {