取得共享聯絡人的相片
舉例來說,如要取得聯絡人的最新相片,請使用下列元素:
<link rel="http://schemas.google.com/contacts/2008/rel#photo" type="image/*"
href="https://google.com/m8/feeds/photos/media/example.com/c9012de"/>
傳送下列 HTTP 要求:
GET https://google.com/m8/feeds/photos/media/example.com/c9012de
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-22 (世界標準時間)。
[null,null,["上次更新時間:2024-11-22 (世界標準時間)。"],[[["Retrieve a contact's photo by sending an HTTP `GET` request to their photo link, replacing `DOMAIN` with your domain and `PHOTO_LINK` with the contact's unique numerical photo link value."],["If a contact lacks a photo, the photo link element won't have a `gd:etag` attribute, which is used to refer to specific photo versions."],["A successful photo retrieval results in an HTTP `200 OK` status code along with the photo itself."]]],["To retrieve a contact's photo, issue an HTTP `GET` request to the contact's photo link using this format: `https://google.com/m8/feeds/photos/media/DOMAIN/PHOTO_LINK`. Replace `DOMAIN` with your domain URL and `PHOTO_LINK` with the contact's unique photo ID. A successful request returns a `200 OK` status code and the photo. The absence of a `gd:etag` attribute in the photo link indicates the contact lacks a photo. The `gd:etag` specifies photo versions.\n"]]