Metodo GetWaitlistEntry

Questo metodo restituisce una voce della lista di attesa per un utente in base all'ID voce della lista di attesa fornito. Il Centro azioni lo chiamerà periodicamente per ricevere aggiornamenti sulla voce della lista di attesa dell'utente. Le voci della lista di attesa devono essere recuperabili per 30 giorni dalla data di creazione.

Richiesta

GetWaitlistEntryRequest

Valore restituito

GetWaitlistEntryResponse

// Get the waitlist entry corresponding to the provided waitlist entry ID.
message GetWaitlistEntryRequest {
  option features.(pb.java).nest_in_file_class = YES;

  // 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 {
  option features.(pb.java).nest_in_file_class = YES;

  // Required. The partner-provided information about a user’s waitlist entry.
  WaitlistEntry waitlist_entry = 1;
}

Recuperare esempi di voci della lista di attesa

Ricevi richiesta

{ "waitlist_entry_id": "MYS-1668739060" }

Ricevi risposta

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