Method: photos.batchGet
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
HTTP 요청
GET https://streetviewpublish.googleapis.com/v1/photos:batchGet
URL은 gRPC 트랜스코딩 구문을 사용합니다.
쿼리 매개변수
매개변수 |
photoIds[] |
string
필수 항목입니다. Photos 의 ID입니다. HTTP GET 요청의 경우 URL 쿼리 매개변수는 photoIds=<id1>&photoIds=<id2>&... 여야 합니다.
|
view |
enum (PhotoView )
필수 항목입니다. 사진 응답에서 사진 바이트의 다운로드 URL을 반환해야 하는지 여부를 지정합니다.
|
languageCode |
string
선택사항입니다. BCP-47 언어 코드(예: 'en-US' 또는 'sr-Latn') 자세한 내용은 http://www.unicode.org/reports/tr35/#Unicode_locale_identifier를 참조하세요. languageCode를 지정하지 않으면 Google 서비스에서 사용자의 언어 환경설정이 사용됩니다.
|
응답 본문
Photos
의 일괄 가져오기에 대한 응답입니다.
성공할 경우 응답 본문에 다음 구조의 데이터가 포함됩니다.
필드 |
results[] |
object (PhotoResponse )
요청된 각 Photo 의 결과 목록으로, photos.batchGet 의 요청과 같은 순서로 표시됩니다.
|
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/streetviewpublish
자세한 내용은 OAuth 2.0 개요를 참고하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-09-10(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-09-10(UTC)"],[[["Retrieves metadata for multiple photos using their IDs via a `GET` request to the specified endpoint."],["Requires providing photo IDs and view preference via query parameters, and an empty request body."],["The response includes a list of results, each corresponding to a requested photo, and indicating success or failure."],["Authorization is required using the `https://www.googleapis.com/auth/streetviewpublish` OAuth scope."],["If the batch request fails, it may be due to missing fields or authentication errors, while individual photos may have separate failures detailed within the response."]]],["This document details the process for retrieving metadata of multiple Street View photos via the `photos.batchGet` method. A `GET` request to `https://streetviewpublish.googleapis.com/v1/photos:batchGet` is required. The request must include `photoIds` and a `view` parameter in the query, and optionally a `languageCode`. The request body should be empty. The response body returns a list of `PhotoResponse` objects containing the requested photo metadata. The request requires `https://www.googleapis.com/auth/streetviewpublish` OAuth scope.\n"]]