शेयर किए गए संपर्क के लिए फ़ोटो पाएं
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी संपर्क की फ़ोटो पाने के लिए, उस संपर्क की फ़ोटो के लिंक पर एचटीटीपी GET
अनुरोध भेजें:
GET https://google.com/m8/feeds/photos/media/DOMAIN/PHOTO_LINK
इनकी जगह ये डालें:
DOMAIN
: आपके डोमेन का यूआरएल—उदाहरण के लिए,
example.com.
PHOTO_LINK
: संख्या वाली एक यूनीक वैल्यू, जो शेयर किए गए संपर्क की फ़ोटो के लिंक को दिखाती है. उदाहरण के लिए, c9012de.
सर्वर, एचटीटीपी 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"/>
यहां दिया गया एचटीटीपी अनुरोध भेजें:
GET https://google.com/m8/feeds/photos/media/example.com/c9012de
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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```"]]