簡介
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
People API 可讓您:
- 讀取及管理已驗證使用者的「聯絡人」
- 讀取及複製已驗證使用者的「其他聯絡人」
- 讀取已驗證使用者及其聯絡人的設定檔資訊
- 讀取網域設定檔和聯絡人
舉例來說,假設通過驗證的使用者 Jen 有 Fabian 和 Ranjith 的私人聯絡人。當應用程式呼叫 people.connections.list
以讀取她的連線清單時,系統會顯示同意畫面,要求 Jen 允許應用程式存取清單。如果 Jen 同意,應用程式會讀取包含 Fabian 和 Ranjith 的 person resources
清單。
如果應用程式需要特定使用者的資訊,只要呼叫 people.get
並傳入資源名稱,就能取得該使用者的 person resource
。
應用程式也可以管理聯絡人,例如使用 people.createContact
建立新聯絡人、使用 people.updateContact
更新已讀取 people.connections.list
的現有聯絡人,以及使用 people.deleteContact
刪除聯絡人。
Google Workspace 使用者也可以使用 people.listDirectoryPeople
列出其目錄網域設定檔和網域聯絡人,或使用 people.searchDirectoryPeople
進行搜尋。
People API 讀取的使用者資訊會從多個來源合併,具體情況取決於以下條件:
瞭解合併個人資料
個人的資料衍生自一個主要來源類型。如果來源是透過已驗證的電子郵件地址、電話號碼或個人資料網址建立連結,系統就會將其他來源的資料與這些資料合併。這些屬性是由使用者組成:
您只能透過異動端點修改聯絡人名單。不支援設定檔與網域聯絡人異動。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-06 (世界標準時間)。
[[["容易理解","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-08-06 (世界標準時間)。"],[[["The People API allows reading and managing the authenticated user's contacts, including private contacts and \"Other contacts\"."],["Users can access profile information for authenticated users and their contacts, including public Google profile data and, when permitted, Google Workspace domain profile data."],["The API facilitates managing contacts by creating, updating, and deleting contacts through specific endpoints."],["Google Workspace users can utilize the API to list and search domain profiles and domain contacts."],["The People API merges data from various sources like public profiles, private profiles, contacts, and domain information based on verified email addresses, phone numbers, or profile URLs."]]],["The People API enables reading and managing authenticated user contacts, \"Other contacts,\" and profile information, including domain profiles. Apps can list connections via `people.connections.list`, retrieve specific person data using `people.get`, create contacts with `people.createContact`, update contacts with `people.updateContact`, and delete contacts via `people.deleteContact`. Google Workspace users can access domain contacts using `people.listDirectoryPeople` or `people.searchDirectoryPeople`. The data is merged from sources like public profiles, domain data, and private information, depending on user consent and scopes granted.\n"]]