วิธีของ ListBookings

คำขอ

แสดงรายการคำขอการจอง

ผลลัพธ์

การตอบกลับรายการการจอง

การดำเนินการนี้มีจุดประสงค์เพื่อส่งคืนการจองในอนาคตให้ผู้ใช้เท่านั้น ไม่ใช่การจองสำหรับตลอดเวลา

รหัสข้อผิดพลาด gRPC ตามรูปแบบบัญญัติ

  • NOT_FOUND (หากพาร์ทเนอร์ไม่ทราบรหัสผู้ใช้ที่ขอ)
// Request to list all upcoming bookings for a user
message ListBookingsRequest {
  // ID of the user (required)
  string user_id = 1;
}

// Response for the [ext.maps.booking.partner.v2.ListBookings] RPC with all
// upcoming bookings for the requested user
message ListBookingsResponse {
  // All bookings of the user (required)
  repeated Booking bookings = 1;
}