授權總覽
本文件概要說明驗證、授權和會計作業的運作方式。所有 API 呼叫都必須通過驗證。當 API 存取使用者的私人資料時,您的應用程式也必須獲得使用者授權才能存取資料。舉例來說,存取公開 Google+ 訊息時不需要使用者授權,但可以存取使用者的私人日曆。
此外,出於配額和帳單目的,所有 API 呼叫都會計入計算。本文會摘要說明 Google API 使用的通訊協定,並提供詳細資訊的連結。
存取權類型
詳情請參閱「開始使用」頁面的驗證與授權一節。
使用 API 金鑰
如要進一步瞭解 API 金鑰及相關範例,請參閱「API 金鑰」頁面。
使用 OAuth 2.0
如要進一步瞭解 OAuth 2.0 及相關範例,請參閱 OAuth 2.0 頁面。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-07-10 (世界標準時間)。
[null,null,["上次更新時間:2024-07-10 (世界標準時間)。"],[[["Google APIs require authentication for all calls and authorization when accessing private user data."],["API usage is tracked for accounting, quota, and billing purposes."],["Google APIs utilize API keys and OAuth 2.0 for authentication and authorization."],["Developers can find more information about authentication, authorization, and API keys through provided links."]]],[]]