Get WaitlistEntry yöntemi

Bu yöntem, sağlanan bekleme listesi giriş kimliğine göre kullanıcı için bir bekleme listesi girişi döndürür. Actions Center, kullanıcının bekleme listesi girişiyle ilgili güncellemeleri almak için bunu düzenli olarak çağırır. Bekleme listesi girişleri, oluşturulma zamanından itibaren 30 gün boyunca alınabilir olmalıdır.

İstek

GetWaitlistEntryRequest

Döndürülen değer

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;
}

Get WaitlistEntry örnekleri

İstek alın

{ "waitlist_entry_id": "MYS-1668739060" }

Yanıt al

{
  "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 }
  }
}