PAGINATION 

Problem: 

- Create a function that grabs data from a third party api

- API is paginated 

- Continue crawling until retrieval of ALL events that took place on a single day 

- Each event object has a date 

CLIENT: 

1 - Function takes two params: a) the client and b) the date 

2 - Returns a promise for an array of event objects for a single day 

3 - Uses recursion to crawl pages

 

PAGINATION

By ayana28

PAGINATION

  • 1,285