PHOTO_LINK: unikalna wartość liczbowa, która reprezentuje link do zdjęcia udostępnionego kontaktu, np. c9012de.
Serwer zwraca kod stanu HTTP 200 OK i zdjęcie. Jeśli kontakt nie ma zdjęcia, element linku do zdjęcia nie będzie miał atrybutu gd:etag. Element gd:etag umożliwia odniesienie się do konkretnej wersji zdjęcia.
Aby na przykład pobrać najnowszą wersję zdjęcia kontaktu, wybierz:
[null,null,["Ostatnia aktualizacja: 2024-11-22 UTC."],[[["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"]]