Changes for page 1. SearchHotelPrices
Last modified by Giorgi Mdivnishvili on 2024/11/06 10:47
From version 16.1
edited by Giorgi Mdivnishvili
on 2024/11/06 10:45
on 2024/11/06 10:45
Change comment:
There is no comment for this version
To version 15.1
edited by Giorgi Mdivnishvili
on 2024/04/11 18:00
on 2024/04/11 18:00
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -378,17 +378,6 @@ 378 378 During the first request, Paging id must be empty like this ( "pagingId": "",) pagenumber is the number of the page, pagerowcount means number of the given result in one page. So in the first request we can search like this: 379 379 380 380 381 -{{code language="Json"}} 382 - { 383 - "isDynamic": false 384 - } 385 - 386 - { 387 - "isDynamic": True 388 - } 389 -{{/code}} 390 - 391 - 392 392 ==== first request ==== 393 393 394 394 {{code language="Json"}} ... ... @@ -441,6 +441,7 @@ 441 441 ** To navigate through the dataset, adjust the pageNumber while keeping the pagingId constant. 442 442 ** To refresh the dataset and clear the cache, initiate a new request without a pagingId. 443 443 433 + 444 444 **Example - Request with Caching**: 445 445 446 446 {{{ { ... ... @@ -463,27 +463,21 @@ 463 463 This documentation outlines the procedural framework for implementing a robust paging and caching strategy within data retrieval systems, detailing parameter usage and operational best practices for both initial and subsequent data fetch operations. 464 464 465 465 466 - 467 -== Update == 468 - 469 -To identify whether the returned result is from a dynamic or static channel, a field 'isDynamic' has been added to the response. This field can have a value of TRUE or FALSE. Accordingly, if the hotel is from a dynamic channel, the response will show TRUE. 470 - 471 - 472 472 == Important == 473 473 474 474 {{error}} 475 - ===ImplementingAuthorizationinSubsequentRequests===459 +It's Important to in every other request header, put Auth token 476 476 477 - Forevery API requestafter the initial authentication, it's crucial to include the authorizationtoken in the request header. This ensures your requests are authorized and can access the necessary resources. Here's how to properly include your token:461 +**Key **- Authorization 478 478 479 -* **Header Key:** Authorization 480 -* **Header Value:** Bearer [Your Token Here] - Use the bearer token provided in the initial authentication response. The authorization type should be specified as Bearer Token. 463 +**Value **- Bearer Token what is given in this response. 481 481 482 -Additionally, to ensure your requests are properly formatted and recognized, include the following headers: 483 483 484 -* **Content-Type:** Specify this header as application/json to indicate the format of the request body. 485 -* **Header Key:** X-nugios-timezone 486 -* **Header Value:** 240 - Adjust this value to match your local timezone offset in minutes. 466 +**also note in headers that:** 487 487 488 -Incorporating these headers with their respective values is essential for the successful processing of your API requests. 468 +Content-Type - application/json 469 + 470 +**Key - **X-nugios-timezone 471 + 472 +**Value **- 240 489 489 {{/error}}