1

How to make multiple requests to When I Work (WIW)

We have data coming from When I Work that is paged (page=X, and more=true/false) in the JSON.  They have said we need to make multiple requests in order to retrieve all the data.  Do you have the ability to iterate over multiple requests?

 

When I Work suggested to make multiple requests like the following to return 200 objects of 559 available...  Basically, I need it to return all the objects.

https://api.wheniwork.com/2/requests?start=2018-10-01&end=2019-12-31&page=0
https://api.wheniwork.com/2/requests?start=2018-10-01&end=2019-12-31&page=1
https://api.wheniwork.com/2/requests?start=2018-10-01&end=2019-12-31&page=2

 

 

5 comments

Please sign in to leave a comment.