Passing webapp parameter to doGet (e)

I am trying to figure out how the parameters in the URL are passed to the doGet() function. I tried to do

https://script.google.com/a/macros/[my domain].com/s/[some random string generated by GAS] , followed by "&variable=data"

but it only gave me this error: "Sorry, the file you requested does not exist."

FYI, https://script.google.com/a/macros/[my domain].com/s/[some random string generated by GAS] works without "&variable=data".

+2
source share
1 answer

To add GET parameters to the end of the url do you need to use ? .

So your URL should look something like this.

 http://script.[.......]/exec?variable=data&otherVariable=otherData 

Also, make sure you publish your application to get this functionality. File> Version Control. Publish> Publish as a web application ...

+4
source

All Articles