google apps script - gas spreadsheet authorization -



google apps script - gas spreadsheet authorization -

i'm new goole apps script. have created simple test script , open spreadsheet , read information. script authorised, published with:

execute app as: me who has access app: anyone, anonymous

i can open spreadsheet manually drive have access it. when run script shows me: "authorisation required perform action." here script:

function doget(e) { var doc = spreadsheetapp.openbyid("0avq4qcr20at2dhbdrm5qyzfqtkdynk9ju3hrudfoake"); homecoming contentservice.createtextoutput( doc.getname()); }

do need create additional authorisation using oauth or ? if appreciate if example.

you have run doget function - or other function in same project - 1 time script editor before can utilize webapp.

this trigger authorization process (showing 1 or more popups depending on services utilize in project) , necessary step.

google-apps-script google-spreadsheet

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -