Method: locations.lodging.getGoogleUpdated
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מחזירה את נתוני הלינה המעודכנים של Google לגבי מיקום ספציפי.
בקשת HTTP
GET https://mybusinesslodging.googleapis.com/v1/{name=locations/*/lodging}:getGoogleUpdated
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
name |
string
חובה. מזהה Google של המיקום הזה בטופס: locations/{locationId}/lodging
|
פרמטרים של שאילתה
פרמטרים |
readMask |
string (FieldMask format)
חובה. השדות הספציפיים שצריך להחזיר. שימוש ב-"*" כדי לכלול את כל השדות. לא ניתן לציין בנפרד פריטים חוזרים בשדה. זוהי רשימה מופרדת בפסיקים של שמות שדות מלאים. דוגמה: "user.displayName,photo"
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
הודעת תגובה לגבי LodgingService.GetGoogleUpdatedLodging
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל נתונים במבנה הבא:
ייצוג JSON |
{
"lodging": {
object (Lodging )
},
"diffMask": string
} |
שדות |
lodging |
object (Lodging )
חובה. Google עדכנה את 'לינה'.
|
diffMask |
string (FieldMask format)
חובה. השדות ב-Lodging שעודכנו על ידי Google פריטים חוזרים בשדה לא מצוינים בנפרד. זוהי רשימה מופרדת בפסיקים של שמות שדות מלאים. דוגמה: "user.displayName,photo"
|
היקפי ההרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/business.manage
למידע נוסף, קראו את המאמר סקירה כללית של OAuth 2.0.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-10-14 (שעון 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-10-14 (שעון UTC)."],[[["Retrieves the Google-updated lodging information for a specific location using a `GET` request."],["Requires specifying the location ID as a path parameter and optionally a field mask as a query parameter."],["Returns the lodging data and a diff mask indicating the fields updated by Google."],["Needs authorization with the `https://www.googleapis.com/auth/business.manage` scope."]]],["This content describes retrieving Google-updated lodging information for a specific location using a `GET` HTTP request. The request requires a location `name` path parameter and a `readMask` query parameter to specify the desired fields. The request body must be empty. The response includes a `lodging` object representing the updated lodging data and a `diffMask` string, indicating which fields Google has updated. Accessing this data requires the `https://www.googleapis.com/auth/business.manage` OAuth scope.\n"]]