execution-api

Google Apps Script Error while creating document using execution API PHP Client

萝らか妹 提交于 2019-12-11 09:45:08
问题 I tried fetching the list of folder and it got successfully fetched by php client. But when i tried creating a document using app script, the document gets created if i run app script code using Run icon in app script editor. But when I am using PHP client to execute the method, it shows me an error. Caught exception: Error calling POST https://script.googleapis.com/v1/scripts/..................:run: (401) ScriptError Also i have send both scopes: https://www.googleapis.com/auth/documents

Use Google Apps Script Execution API with API keys and Javascript

会有一股神秘感。 提交于 2019-12-06 16:07:12
问题 I want to create a web application for my client and use Google drive to store information. Since it's impossibe to integrate a web application from google apps script in my own website I try to use Google Apps Script Execution API and Javascript to make the interaction between my website and Google Drive. I find out some exemple like this one : https://mashe.hawksey.info/2015/10/google-sheets-as-a-database-authenticated-insert-with-apps-script-using-execution-api/ I do be able to reproduce

Can the Google Apps Script Execution API be called by a service account?

主宰稳场 提交于 2019-12-05 16:06:29
问题 I'd like to use a service account to access a Google Sheet via the Apps Script Execution API, but it's not clear from the documentation whether this is supported. The steps I've tried (which result in a 403 status from the Execution API) are: Create a new (unbound) Apps Script Visit the linked Developer Console project Enable the Execution API Create a new service account within the same project (downloading the generated JSON file) Create a new Google Sheet and share it with the service

Use Google Apps Script Execution API with API keys and Javascript

寵の児 提交于 2019-12-04 21:38:56
I want to create a web application for my client and use Google drive to store information. Since it's impossibe to integrate a web application from google apps script in my own website I try to use Google Apps Script Execution API and Javascript to make the interaction between my website and Google Drive. I find out some exemple like this one : https://mashe.hawksey.info/2015/10/google-sheets-as-a-database-authenticated-insert-with-apps-script-using-execution-api/ I do be able to reproduce this example but it use an Auth authentification. I would like to use Google Apps Script Execution API

Can the Google Apps Script Execution API be called by a service account?

纵饮孤独 提交于 2019-12-04 02:30:07
I'd like to use a service account to access a Google Sheet via the Apps Script Execution API , but it's not clear from the documentation whether this is supported. The steps I've tried (which result in a 403 status from the Execution API) are: Create a new (unbound) Apps Script Visit the linked Developer Console project Enable the Execution API Create a new service account within the same project (downloading the generated JSON file) Create a new Google Sheet and share it with the service account's email address ( this is the step I'm least sure about ) Write an apps script function that reads

Why does my apps script deployed as API executable return Permission Denied?

好久不见. 提交于 2019-11-26 20:31:46
I created a script in the script editor, published it as a "Deploy as API executable". Inside this script, I provided a doc_id to my sheet and defined a function to get data from that sheet. I then went to https://developers.google.com/apps-script/execution/rest/v1/scripts/run to test the execution API. I added the scopes, authorized the app and tried it. I am getting the following error message: "error": { "code": 403, "message": "The caller does not have permission", "status": "PERMISSION_DENIED" } Can someone tell me what I am doing wrong? Make sure the app script is associated with correct

Why does my apps script deployed as API executable return Permission Denied?

空扰寡人 提交于 2019-11-26 07:39:44
问题 I created a script in the script editor, published it as a \"Deploy as API executable\". Inside this script, I provided a doc_id to my sheet and defined a function to get data from that sheet. I then went to https://developers.google.com/apps-script/execution/rest/v1/scripts/run to test the execution API. I added the scopes, authorized the app and tried it. I am getting the following error message: \"error\": { \"code\": 403, \"message\": \"The caller does not have permission\", \"status\": \