GetWaitlistEntry 메서드

이 메서드는 대기자 명단 항목을 만들 수 있습니다. Actions Center는 주기적으로 이를 호출하여 사용자의 대기자 명단에 등록할 수 있습니다. 대기자 명단 항목은 확인할 수 있습니다

요청

GetWaitlistEntryRequest

반환값

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

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