Skip to content
Advertisement

Tag: google-apps-script

UrlFetchApp Variable Errors

I’m trying to make a proxy with the UrlFetchApp Google Scripts API. However, with a query string of ?url=”https://google.com”, it gives me this error: But when I substitute param in my code below for https://google.com, the exact value of param, it works perfectly fine for some reason. Here’s my code: Thank you for any help! Answer How about this modification?

getConnectedNodes direction parameter

I have a small issue with the parameter direction of the function getConnectedNodes() based on the Vis.js documentation (search for “getConnectedNodes” in the link) Any idea to get the direction of the edges using the parameter (i don’t know how to)? JSON Example Here part of the code Before hand, thanks a lot! Answer index is the index of the

Trying to pull stock quote info from TDAmeritrade with Google Script with API needing authentication

I’m using an API from TD Ameritrade to pull stock ticker information. The script needs authentication to pull real time data. The CURL command is as follows: curl -X GET –header “Authorization: ” –header “Authorization: Bearer ” “https://api.tdameritrade.com/v1/marketdata/AAPL/quotes?apikey=” I’m using a Google Script to read the data from the API, do some calculations, and then write the data to a

Google App Script Web App GET and POST request blocked by CORS policy

I created a Google Web script app that adds a user’s name and email to a spreadsheet. This works fine when accessing the web page from directly in the browser, but both GET and POST requests from a website returns the error “Access to fetch at ‘https://script.google.com/macros/s/AKfycbxkG5hM6MMswwHdzWSJKwutMYsOZRT3zjC7jFti0sDvJ47bWB4BTsHPhvbyEVGSsSc5/exec’ from origin ” has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is

Advertisement