공유 연락처의 사진 가져오기
예를 들어 다음 요소가 있는 연락처의 최신 버전 사진을 가져오려면 다음을 실행합니다.
<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 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-22(UTC)
[null,null,["최종 업데이트: 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"]]