I am using the script editor in google spreadsheets, and I want to be able to make a simple HTTP request, but I keep getting the following error message:
Google Apps Script: You do not have permission to call fetch
I used the onEdit
Function
function onEdit(e){
var ui = SpreadsheetApp.getUi();
var response = UrlFetchApp.fetch('http://www.google.com/');
Logger.log(response.getContentText());
}
Why am I getting this error? Any help would be appreciated.