Phương thức GetWaitlistEntry

Phương thức này trả về một mục trong danh sách chờ cho người dùng dựa trên mã mục nhập trong danh sách chờ được cung cấp. Trung tâm hành động sẽ gọi định kỳ lệnh này để nhận thông tin cập nhật về mục nhập danh sách chờ của người dùng. Người dùng phải truy xuất được các mục trong danh sách chờ trong vòng 30 ngày kể từ thời gian tạo.

Yêu cầu

GetWaitlistEntryRequest

Giá trị trả về

GetWaitlistEntryResponse


// Get the waitlist entry corresponding to the provided waitlist entry ID.
message GetWaitlistEntryRequest {
  // Required. The partner-provided waitlist entry ID to request info for.
  string waitlist_entry_id = 1;
}

// Response with the waitlist entry corresponding to the provided
// waitlist entry ID.
message GetWaitlistEntryResponse {
  // Required. The partner-provided information about a user’s waitlist entry.
  WaitlistEntry waitlist_entry = 1;
}

Mẫu GetWaitlistEntry

Nhận yêu cầu

{ "waitlist_entry_id": "MYS-1668739060" }

Nhận phản hồi

{
  "waitlist_entry": {
    "wait_estimate": {
      "party_size": 3,
      "wait_length": { "parties_ahead_count": 3 }
    },
    "waitlist_entry_state": "WAITING",
    "waitlist_entry_state_times": { "created_time_seconds": 1234567890 }
  }
}