GetWaitlistEntry तरीका

यह तरीका, इंतज़ार की सूची में शामिल होने के लिए दिए गए आईडी के आधार पर, किसी उपयोगकर्ता के लिए इंतज़ार की सूची में शामिल होने की एंट्री दिखाता है. Actions Center, इस फ़ंक्शन को समय-समय पर कॉल करेगा, ताकि उपयोगकर्ता की वेटलिस्ट एंट्री के बारे में अपडेट मिल सकें. वेटलिस्ट में शामिल होने के लिए किए गए अनुरोधों को, अनुरोध करने के समय से 30 दिनों तक वापस पाया जा सकता है.

अनुरोध

GetWaitlistEntryRequest

रिटर्न वैल्यू

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

GetWaitlistEntry के सैंपल

अनुरोध पाएं

{ "waitlist_entry_id": "MYS-1668739060" }

जवाब पाना

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