Loading stock quotes from TD Ameritrade developer app into Sheets with Google Script
问题 I'm trying to use an API from TD Ameritrade to load stock info into a Google Sheet. I've tried the following code: var ticker = "APPL" var headers = {"Authorization":" Bearer <access token>"} var options = {"headers":headers} var calltoAPI=urlFetchApp.fetch("https://api.tdameritrade.com/v1/marketdata/"+ticker+"/quotes?apikey=<myapikey>",options); I get the error: ReferenceError: urlFetchApp is not defined (line 6, file "Code"). However, in my developer app, I do get a return on APPL. Worth