I want to increment the sIndex value with 200 for every Iteration. I want to do this until the API responds with an error response like this
{
“response”: {
“message”: “Error occurred”,
“uri”: “apidomain”,
“errors”: {
“code”: 7024,
“message”: “No records found”
},
“status”: 1
}
}
I am not sure how to do this with Rivery. I tried the “pagination with offset” option but do not know how to increment the value in terms of 200 and also, I do not know how to give the key in response and value to stop.
It will start with an offset=0 and pass it in the query with the key “sIndex”, and it will stop whenever the page size is smaller than 200. Don’t forget to add the limit=200 in the query params
I have another query, I need to call the Rest API of Rivery.I want to run the river using a rest API. where can I find the details of cross-river-id, environment id and account id in the UI.
The solution provided helped in stopping at the correct place. But how does the SIndex value increment in the next iteration, will it go to 1 or 200?
Right now, the data I have only elements less than 200, so it is working for me. But what if the data has 300 elements?
In the first iteration it will get items from 0 to 199; in the second iteration will it get from 1 to 200 or 200 to 300?