// 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"]],["最后更新时间 (UTC):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."]]],[]]