קבלת תמונה של איש קשר משותף
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כדי לקבל תמונה של איש קשר, שולחים בקשת HTTP GET
לקישור של התמונה של איש הקשר:
GET https://google.com/m8/feeds/photos/media/DOMAIN/PHOTO_LINK
מחליפים את מה שכתוב בשדות הבאים:
DOMAIN
: כתובת ה-URL של הדומיין שלכם – לדוגמה, example.com.
PHOTO_LINK
: ערך מספרי ייחודי שמייצג את הקישור לתמונה של איש הקשר ששותף – לדוגמה, c9012de.
השרת מחזיר את קוד הסטטוס 200 OK
של HTTP ואת התמונה. אם לא מוגדרת תמונה לאיש הקשר, לרכיב הקישור לתמונה לא יהיה מאפיין 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
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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```"]]