OAuth 2.0 Playground调用Google App Script是否存在超时限制?
Recently, I've been experimenting with running a simple Google Apps Script function through the OAuth 2.0 Playground, and wanted to share my setup and observations:
Script Function Overview
The function I'm testing is incredibly basic—it just waits for a specified number of seconds before returning true. Here's the full code:
function funSleep(intSeconds) { Utilities.sleep(intSeconds * 1000); return true; }
Execution Endpoint
I'm invoking the script using this API endpoint:https://script.googleapis.com/v1/scripts/MSnRgD0GQVGwCP-h1YWmtpwV62A3zXXXX:run
Response Behavior
When the requested sleep duration is less than 55 seconds, the API returns a successful HTTP 200 OK response. The partial response headers and content look like this:
HTTP/1.1 200 OK
Content-length: 133
X-xss-protection: 1; mode=block
X-content-type-options: nosniff
Transfer-...
内容的提问来源于stack exchange,提问作者FreeZey

