// Log the authorization status (REQUIRED or NOT_REQUIRED).constauthInfo=ScriptApp.getAuthorizationInfo(ScriptApp.AuthMode.FULL);Logger.log(authInfo.getAuthorizationStatus());
// Log the URL used to grant access to the script.constauthInfo=ScriptApp.getAuthorizationInfo(ScriptApp.AuthMode.FULL);Logger.log(authInfo.getAuthorizationUrl());
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-12-22 (世界標準時間)。"],[[["AuthorizationInfo is an object used to determine if a user needs to authorize a script to use services and provides the authorization dialog URL."],["This object is primarily used in add-ons with installable triggers to manage user access or prompt for authorization."],["It offers two methods: `getAuthorizationStatus()` to check if authorization is required, and `getAuthorizationUrl()` to obtain the authorization URL."],["Scripts should generally use `ScriptApp.getAuthorizationInfo(ScriptApp.AuthMode.FULL)` for comprehensive authorization checks."]]],[]]