プル要求またはヒント付きのプル要求にサインアップすると、Microsoft は、次回の価格フィードで送信する必要があるスケジュール データを指定するクエリ メッセージを送信します。
プル要求の使用
pull request を使用している場合、Microsoft は次のようなクエリ メッセージのような要求を送信することができます。
<?xml version="1.0" encoding="UTF-8"?>
<Query>
<Checkin>2017-10-20</FirstDate>
<Nights>1</Nights>
<PropertyList>
<Property>223</Property>
<Property>256</Property>
<Property>289</Property>
</PropertyList>
</Query>
お持ちのホテルの数に応じて、Microsoft はクエリをいくつかの小さなクエリに分割し、各クエリにはプロパティ リスト内のホテルのサブセットが含まれます。
クエリ メッセージを受け取ると、応答には次の <Result> を含む価格フィードが含まれている必要があります。
<Result>
<Property>223</Property>
<Checkin>2017-10-20</Checkin>
<Nights>1</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>223</Property>
<Checkin>2017-10-20</Checkin>
<Nights>2</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>223</Property>
<Checkin>2017-10-20</Checkin>
<Nights>3</Nights>
<!-- Pricing and other elements that changed -->
</Result>
. . .
<Result>
<Property>223</Property>
<Checkin>2017-10-30</Checkin>
<Nights>1</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>223</Property>
<Checkin>2017-10-30</Checkin>
<Nights>2</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>223</Property>
<Checkin>2017-10-30</Checkin>
<Nights>3</Nights>
<!-- Pricing and other elements that changed -->
</Result>
. . .
<Result>
<Property>256</Property>
<Checkin>2017-10-20</Checkin>
<Nights>1</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>256</Property>
<Checkin>2017-10-20</Checkin>
<Nights>2</Nights>
<!-- Pricing and other elements that changed -->
</Result>
<Result>
<Property>256</Property>
<Checkin>2017-10-20</Checkin>
<Nights>3</Nights>
<!-- Pricing and other elements that changed -->
</Result>
. . .
ヒント要求を使用したプルの使用
プルとヒント要求を使用した場合に Microsoft が送信するさまざまな種類のクエリ メッセージを示す例については、「 ヒント メッセージの作成」を参照してください。