UrlFetchApp not defined
I'm calling UrlFetchApp.fetch ("www.google.com")
from my javascript code and I get:
Unprepared ReferenceError: UrlFetchApp not defined
Does anyone know why it is not defined? I thought it was built.
+3
Paul sun
source
to share
1 answer
The URL lookup service and its UrlFetchApp class are part of Google Apps Script , a javascript-based server-side scripting language that allows you to distribute Google Apps products such as Docs, Sheets, and Forms using custom functions.
The UrlFetchApp class is NOT available in client-side javascript, which is similar to what you are trying to do. It can only be used in Google Apps Script.gs server side files.
+3
azawaza
source
to share