Method: photos.batchGet
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בקשת HTTP
GET https://streetviewpublish.googleapis.com/v1/photos:batchGet
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של שאילתה
פרמטרים |
photoIds[] |
string
חובה. המזהים של Photos . בבקשות 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. אם לא צוין קוד שפה, המערכת תשתמש בהעדפת השפה של המשתמש עבור שירותי 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. 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"]]