Im making a url fetch api call from google appscript nhtsa which according to their documentation doesnt require any authentication yet my response I am getting is missing authentication token but I can enter the same decoded url into browser and and access the json data fine. Makes no sense to me. My code is below. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
function openRecll() {
var make = ("dodge"); // set variables for vehicle to but searched
var model = ("charger");
var year = ("2021");
// set variables for what needs encoded parts of url that need encoding
var makeenc = ("?make=");
var modelsenc = ("&model=");
var yearsenc = ("&modelYear=");
//encode string
estring = encodeURIComponent(makesenc+make+modelsenc+model+yearsenc+year);
var url = ("api.nhtsa.gov/recalls/recallsByVehicle"+estring);
Logger.log (url);
response = UrlFetchApp.fetch(url);
}
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''