Triển khai máy chủ đặt phòng: API phiên bản 0 (cũ)
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Việc thiết lập một máy chủ Đặt phòng ở phía bạn sẽ cho phép Actions Center tạo cuộc hẹn / lượt đặt phòng / lượt đặt chỗ với bạn thay mặt cho người dùng.
Triển khai một giao diện API dựa trên gRPC
Không được dùng API phiên bản 0 cho các tiện ích tích hợp mới.
Tải định nghĩa dịch vụ ở định dạng proto xuống bên dưới để bắt đầu triển khai API.
Sau đây là định nghĩa BookingService hoàn chỉnh bằng cách sử dụng 3 phương thức ở trên:
// Manages slot leases and bookings for an inventory of appointmentsserviceBookingService{// Creates a new leaserpcCreateLease(CreateLeaseRequest)returns(CreateLeaseResponse){}// Creates a booking for which a lease existsrpcCreateBooking(CreateBookingRequest)returns(CreateBookingResponse){}// Updates an existing bookingrpcUpdateBooking(UpdateBookingRequest)returns(UpdateBookingResponse){}}
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2026-02-18 UTC."],[],["To integrate with Actions Center for bookings, implement a gRPC-based API server. This involves using API v0 service definition (not for new integrations) and familiarizing yourself with `Lease` and `Booking` resource types. Implement the `CreateLease`, `CreateBooking`, and `UpdateBooking` methods within the `BookingService` to manage slot holds and reservations. Each method should return gRPC status codes. Download the service definition in proto format to start. Utilize API V3 for new integrations.\n"]]