获取共享联系人的照片
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
例如,如需获取联系人的最新照片版本,请使用以下元素:
<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
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-25。
[null,null,["最后更新时间 (UTC):2025-03-25。"],[],[],null,["# Get a photo for a shared contact\n\n- To get a photo for a contact, send an HTTP `GET` request to the\n photo link of the contact:\n\n ```xml\n GET https://google.com/m8/feeds/photos/media/DOMAIN/PHOTO_LINK\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003eDOMAIN\u003c/var\u003e: The URL for your domain---for example, example.com.\n - \u003cvar translate=\"no\"\u003ePHOTO_LINK\u003c/var\u003e: A unique numerical value that represents the photo link for the shared contact---for example, c9012de.\n\n The server returns an HTTP `200 OK` status code and the photo. If a\n contact doesn't have a photo, then the photo link element doesn't have a\n `gd:etag` attribute. The `gd:etag` element lets you refer to a specific\n version of a photo.\n\nFor example, to get the latest version of a photo for a contact with the\nfollowing element: \n\n```xml\n\u003clink rel=\"http://schemas.google.com/contacts/2008/rel#photo\" type=\"image/*\"\n href=\"https://google.com/m8/feeds/photos/media/example.com/c9012de\"/\u003e\n```\n\nSend the following HTTP request: \n\n```xml\nGET https://google.com/m8/feeds/photos/media/example.com/c9012de\n```"]]