準備使用 People API
在開始編寫第一個用戶端應用程式之前,您需要先完成以下三項操作:
- 建立 Google 帳戶
- 建立專案
- 設定應用程式
如果您尚未完成這些工作,本指南將引導您完成所有步驟。
1. 建立 Google 帳戶
您必須具備 Google 帳戶,才能在 Google API 控制台中建立專案。如果您已經有帳戶,就大功告成了!您可能也想要使用另一個 Google 帳戶進行測試。
2. 為用戶端建立專案
您必須先向 Google 告知用戶端並啟用 API 的存取權,才能向 People API 傳送要求。如要這麼做,請使用 Google API 控制台建立「專案」,專案的名稱是具名的集合和 API 存取權資訊,並註冊應用程式。
如要開始使用 People API,請先使用設定工具;這項工具會逐步引導您在 Google API 控制台中建立專案、啟用 API,並建立憑證。
3. 設定應用程式
如果您使用其中一種支援的語言,請考慮使用其中一個用戶端程式庫。您必須先設定授權,才能向 API 發出要求。
查看快速入門程式碼範例,其中示範如何擷取多種語言的聯絡人清單。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-06 (世界標準時間)。
[null,null,["上次更新時間:2024-08-06 (世界標準時間)。"],[[["To begin coding your client application, you must first obtain a Google Account, create a project in the Google API Console, and set up your app."],["Creating a project involves informing Google about your client and activating API access using the Google API Console, where you can register your application and manage settings."],["Before making requests to the API, ensure you've set up authorization and consider utilizing client libraries if your language is supported."]]],[]]