Method: photos.batchGet
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
HTTP リクエスト
GET https://streetviewpublish.googleapis.com/v1/photos:batchGet
この URL は gRPC Transcoding 構文を使用します。
クエリ パラメータ
パラメータ |
photoIds[] |
string
必須。Photos の ID。HTTP GET リクエストの場合、URL クエリ パラメータは photoIds=<id1>&photoIds=<id2>&... にする必要があります。
|
view |
enum (PhotoView )
必須。写真のレスポンスで写真バイトのダウンロード URL を返すかどうかを指定します。
|
languageCode |
string
省略可。「en-US」や「sr-Latn」などの BCP-47 言語コード。詳しくは、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 の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は 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"]]