如要定義授予應用程式的存取權層級,您必須識別並宣告授權範圍。授權範圍是 OAuth 2.0 URI 字串,其中包含 Google Workspace 應用程式名稱、應用程式存取的資料類型,以及存取層級。「範圍」是指應用程式要求處理 Google Workspace 資料的權限,包括使用者的 Google 帳戶資料。
[null,null,["上次更新時間:2024-12-21 (世界標準時間)。"],[[["This document provides Google Tasks API-specific authorization and authentication details, complementing Google Workspace's general authentication guide."],["Before using the Tasks API, you need to configure OAuth 2.0, including setting up the consent screen, choosing scopes, and registering your app."],["Tasks API utilizes scopes to define the level of access your application has, allowing you to specify whether it can view or fully manage user tasks."],["When selecting scopes, prioritize the most narrowly focused ones to respect user privacy and increase the likelihood of consent."],["Public applications using specific scopes may require verification to ensure user data protection and avoid being flagged as unverified."]]],["To access the Google Tasks API, configure OAuth 2.0, including the consent screen and scope selection. Scopes define the level of data access for your app. Choose the most narrowly focused scope possible. The Tasks API offers two scopes: `https://www.googleapis.com/auth/tasks` for full task management and `https://www.googleapis.com/auth/tasks.readonly` for viewing tasks. Public apps using scopes that access user data must undergo a verification process to avoid being labeled as \"unverified.\"\n"]]