รับรูปภาพสําหรับรายชื่อติดต่อที่แชร์
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หากต้องการดูรูปภาพของผู้ติดต่อ ให้ส่งคำขอ HTTP GET
ไปยังลิงก์รูปภาพของผู้ติดต่อ
GET https://google.com/m8/feeds/photos/media/DOMAIN/PHOTO_LINK
แทนที่ค่าต่อไปนี้
DOMAIN
: URL ของโดเมน เช่น example.com
PHOTO_LINK
: ค่าตัวเลขที่ไม่ซ้ำกันซึ่งแสดงลิงก์รูปภาพสำหรับรายชื่อติดต่อที่แชร์ เช่น c9012de
เซิร์ฟเวอร์จะแสดงรหัสสถานะ HTTP 200 OK
และรูปภาพ หากรายชื่อติดต่อไม่มีรูปภาพ องค์ประกอบลิงก์รูปภาพจะไม่มีแอตทริบิวต์ gd:etag
องค์ประกอบ gd:etag
ช่วยให้คุณอ้างอิงรูปภาพเวอร์ชันที่เจาะจงได้
ตัวอย่างเช่น หากต้องการดูรูปภาพเวอร์ชันล่าสุดของผู้ติดต่อที่มีองค์ประกอบต่อไปนี้
<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 Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-03-25 UTC
[null,null,["อัปเดตล่าสุด 2025-03-25 UTC"],[],[],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```"]]