I am having a hard time updating the new Shopify’s API requirements within our unpublished app, due to not knowing what exactly needs to be changed in the code.
I have worked with APIs in the past, but I’m relatively new to Shopify. My current understanding is that Shopify updates their APIs requirements every quarter.
The step I need to take is updating the REST Admin API Webhook and Paginated Requests. I've already read through the Shopify docs and made some changes but it's still unable to make any API requests.
So I was hoping if anyone would be able to help me, by pointing me to the right direction for guidance as to what exactly and where the new API requirements need to be implemented in the code.
Just sent you a message with my email. I can take a look and see for you.
Depending on the scope of your unpublished app it could just be fixing the pagination to work with the new next/prev page tokens instead of using the old way of requesting a specific page + number of rows. It might require more updates though as you haven't updated in over a year.
You need to get and pass in the next page token to `page_info` not the next page number(ie index + 1).
See this for some info on migrating using ruby api: https://github.com/Shopify/shopify_api#pagination
You'd get rid of the number of pages and switch to the while loop instead.