GetWaitlistEntry 메서드

이 메서드는 제공된 대기자 명단 항목 ID를 기준으로 사용자의 대기자 명단 항목을 반환합니다. 작업 센터는 주기적으로 이 메서드를 호출하여 사용자의 대기자 명단 항목에 관한 업데이트를 받습니다. 대기자 명단 항목은 만든 후 30일 동안 가져올 수 있습니다.

요청

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