GetWaitlistEntry 메서드

이 메서드는 제공된 대기자 명단 항목 ID를 기준으로 사용자의 대기자 명단 항목을 반환합니다. 작업 센터는 사용자의 대기자 명단 등록에 관한 업데이트를 가져오기 위해 이 메서드를 주기적으로 호출합니다. 대기 목록 항목은 생성 시간으로부터 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 }
  }
}