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 のサンプル

GET リクエスト

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