Method: locations.getLodging
Trả về cơ sở lưu trú của một vị trí cụ thể.
Yêu cầu HTTP
GET https://mybusinesslodging.googleapis.com/v1/{name=locations/*/lodging}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Các tham số |
name |
string
Bắt buộc. Giá trị nhận dạng của Google cho vị trí này ở dạng: locations/{locationId}/lodging
|
Tham số truy vấn
Các tham số |
readMask |
string (FieldMask format)
Bắt buộc. Các trường cụ thể cần trả về. Hãy dùng "*" để bao gồm tất cả các trường. Bạn không thể chỉ định riêng các mục trường lặp lại. Đây là danh sách các tên trường đủ điều kiện được phân tách bằng dấu phẩy. Ví dụ: "user.displayName,photo"
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của Lodging
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/business.manage
Để biết thêm thông tin, hãy xem Tổng quan về OAuth 2.0.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2023-12-01 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2023-12-01 UTC."],[[["This endpoint retrieves lodging information for a specific location using a GET request."],["The request requires a `name` path parameter to identify the location and an optional `readMask` query parameter to specify the fields to return."],["Authorization is required using the `https://www.googleapis.com/auth/business.manage` scope."],["A successful response provides a `Lodging` object containing details about the lodging."]]],["This documentation outlines how to retrieve lodging information for a specific location. A `GET` request is sent to the provided URL, including the location's identifier in the `name` path parameter (e.g., `locations/{locationId}/lodging`). The `readMask` query parameter is required to specify which fields to return, or \"*\" for all fields. The request body must be empty. A successful response returns a `Lodging` instance, and `https://www.googleapis.com/auth/business.manage` OAuth scope is required.\n"]]