当前位置: 动力学知识库 > 问答 > 编程问答 >

Getting 403 when trying to execute a google script

问题描述:

I am trying to execute a google script via API. I have authorized with all the necessary scopes and included my parameters, function, and dev mode:

POST https://script.googleapis.com/v1/scripts/{scriptId}:run

{

"devMode":true,

"function":"createNewSpreadsheetTrigger",

"parameters":["{fileId}"]

}

But keep getting a 403:

{

"error": {

"code": 403,

"message": "The caller does not have permission",

"status": "PERMISSION_DENIED"

}

}

I created this script with the same account that is trying to remotely execute.

Thoughts?

Thanks!

分享给朋友:
您可能感兴趣的文章:
随机阅读: