Example 2: HTTP Client GET Pagination
This example Pipeline demonstrates how to use the Has Next field to retrieve the list of records from the specified URL. This example assumes you have a valid account to access the resources from the endpoint.
Steps
Configure the HTTP Client Snap with the GET Request Method and the URI to return the response (records) from the Hub endpoint.
Â
The following configuration details are key to understanding this example:
Field | Value | Description |
---|---|---|
Has Next | $entity['has-more'] | The entity is the response returned from the specified URI and the ‘has-more’ key evaluates to |
Total Pages to Fetch | 2 | This field represents the number of webpages from where you want to fetch the response. |
Next URI | https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&vidOffset=" + $entity['vid-offset'] | This URL indicates the video offset value that is appended to the first URI. Â |
On validation, the output displays the response received from the URI as highlighted in the image.
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2024 SnapLogic, Inc.