Github API Pagination

Hey community,

This is my first attempt to get pagination working on a rest call but I’m a bit stuck on how to deal with the ‘Has Next’ and ‘Next URL’ options.

The API response contains the next URL but it also contains the following URL. What do I need to put in each of the pagination options to get this to work?