google-apps-script-api

404 error when deploying a Google Apps script via the REST API

血红的双手。 提交于 2019-12-08 09:38:18
问题 I'm trying to deploy a Google Apps script via the Google REST API, and I'm using the API Explorer to perform that. This is the method I am testing: https://developers.google.com/apps-script/api/reference/rest/v1/projects.deployments/create Executing the method via the API Explorer returns a 404 error. I have verified that the scriptId in question does exist, and have tried several other scriptIds, to no avail. I have also made sure the permission scopes are properly set. This is what the API

How to run Google App Script function from Google OAuth 2.0 Playground | The caller does not have permission

假如想象 提交于 2019-12-07 13:08:22
问题 I have created a new script which creates "Google Form" on my google account. Following is the sample code: function myFunction() { var form = FormApp.create('New Form'); var item = form.addCheckboxItem(); item.setTitle('What condiments would you like on your hot dog?'); item.setChoices([ item.createChoice('Ketchup'), item.createChoice('Mustard'), item.createChoice('Relish') ]); form.addMultipleChoiceItem() .setTitle('Do you prefer cats or dogs?') .setChoiceValues(['Cats','Dogs'])

How to run Google App Script function from Google OAuth 2.0 Playground | The caller does not have permission

谁说胖子不能爱 提交于 2019-12-05 20:03:44
I have created a new script which creates "Google Form" on my google account. Following is the sample code: function myFunction() { var form = FormApp.create('New Form'); var item = form.addCheckboxItem(); item.setTitle('What condiments would you like on your hot dog?'); item.setChoices([ item.createChoice('Ketchup'), item.createChoice('Mustard'), item.createChoice('Relish') ]); form.addMultipleChoiceItem() .setTitle('Do you prefer cats or dogs?') .setChoiceValues(['Cats','Dogs']) .showOtherOption(true); form.addPageBreakItem() .setTitle('Getting to know you'); form.addDateItem() .setTitle(

Google Apps Script - Deploy as web app - now requires me to “Share” the the code

让人想犯罪 __ 提交于 2019-12-04 20:25:14
I recently made a simple change to an google app script - once I re-deployed, you can access whichever page is in the: var t = HtmlService.createTemplateFromFile('my1'); But any subsequent attempts to open a different html page by clicking a button with a link, will display "Google Drive - Access Denied" / "Google Drive, You need permission..." I tested also, by creating a VERY simple web app, that does not attemp to access any google 'sheets', drive, or any other API, and get the same result - is the "Publish - Deploy as web app" broken? 来源: https://stackoverflow.com/questions/49784884/google