csv - Google Apps Script (Web Apps): Can I use query strings? -


i had idea create apps script app pass google drive spreadsheet name , have return .csv output. so, csv exporter.

i feel should able this:

https://script.google.com/macros/s/akfycbyky80bhm_zwby1-zxy37jjld8ztozuxup8-exovjq/exec?filename=sheet-i-want-to-export-to-csv

and receive raw .csv data result.

is possible? if so, how?

it seems web apps doesn't allow query strings, @ least not via usual scriptapp.getservice().geturl() method.

replace "key" , "sheet" or it's id #

"https://spreadsheets.google.com/feeds/download/spreadsheets/export?key="+key+"&exportformat=csv&gid="+sheet+"&gridlines=0&printtitle=0&size=7&fzr=true&portrait=1&fitw=1"


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -