google-apps-script-api

Apps Script API returning 404 error for existing project. Error returned as HTML rather than JSON

耗尽温柔 提交于 2021-02-20 00:43:10
问题 I was attempting to run an Apps Script function using the Apps Script API. I set up the script in the console, and created an oauth client ID for the script. I configured the authorisation screen and deployed the script as API executable. I tested the api function calling in the same script but got a 404 error saying: The Requested URL /v1/scripts/{{my_script_id}}:run was not found on this server. The response came back as HTML. I also noticed that the script seems to make it's own client ID

Apps Script API returning 404 error for existing project. Error returned as HTML rather than JSON

假如想象 提交于 2021-02-20 00:41:30
问题 I was attempting to run an Apps Script function using the Apps Script API. I set up the script in the console, and created an oauth client ID for the script. I configured the authorisation screen and deployed the script as API executable. I tested the api function calling in the same script but got a 404 error saying: The Requested URL /v1/scripts/{{my_script_id}}:run was not found on this server. The response came back as HTML. I also noticed that the script seems to make it's own client ID

Apps Script API returning 404 error for existing project. Error returned as HTML rather than JSON

*爱你&永不变心* 提交于 2021-02-20 00:41:16
问题 I was attempting to run an Apps Script function using the Apps Script API. I set up the script in the console, and created an oauth client ID for the script. I configured the authorisation screen and deployed the script as API executable. I tested the api function calling in the same script but got a 404 error saying: The Requested URL /v1/scripts/{{my_script_id}}:run was not found on this server. The response came back as HTML. I also noticed that the script seems to make it's own client ID

How to copy a Google sheet and keep it's project triggers and scripts?

三世轮回 提交于 2021-02-10 16:16:00
问题 I currently have a Google Sheet that I'm using as a master template. That is, I'm making a copy of this template for every request. I want to add a Google App Script (which onEdit POSTs to my server when the sheeting is completed) to my master template that will be duplicated and run for every copy of this template. I've tried doing this from an admin account, however, the scripts don't seem to 'stick' with any of the templates. Is this possible? 回答1: Installable triggers can be attached to

How to copy a Google sheet and keep it's project triggers and scripts?

99封情书 提交于 2021-02-10 16:14:59
问题 I currently have a Google Sheet that I'm using as a master template. That is, I'm making a copy of this template for every request. I want to add a Google App Script (which onEdit POSTs to my server when the sheeting is completed) to my master template that will be duplicated and run for every copy of this template. I've tried doing this from an admin account, however, the scripts don't seem to 'stick' with any of the templates. Is this possible? 回答1: Installable triggers can be attached to

Apps Script Execution API 404 error with devMode: true

给你一囗甜甜゛ 提交于 2021-02-10 15:42:17
问题 When requesting POST https://script.googleapis.com/v1/scripts/{script_id}:run with devMode: true I get a 404 error. I can run the script successfully with devMode: false . Although other people (1, 2) have raised this issue, none of the other solutions work. I keep getting an HTTP 404 Not Found error whenever my request comes with devMode: true . I have performed the following steps: created a new Google account created a Cloud project set up an OAuth consent screen for the project authorized

Apps Script Execution API showing error with devMode: true

久未见 提交于 2021-02-04 19:44:53
问题 Trying to use Execution API for one of my project with devMode: true , but getting the following error. But it works flawlessly when I make devMode: false . NOTE: I am owner and using the API from same account (so it should work ideally) I have deployed the script as api executable with access as "Anyone" I have enabled the "Apps Script API" in the developer console Both the oauth and apps script share the same project { "error": { "code": 404, "message": "Requested entity was not found.",