How to change to Cursor-based pagination

Highlighted
New Member
4 0 0

I have received the E-Mail that cursor-based pagination will no longer be supported as of April 1st, 2021.

We have a business crucial application running in a Google Sheet that imports all (open/unfulfilled) orders as follows:

function fetchData() {
  var url = 'https://shop.myshopify.com/admin/orders.json?limit=250&page=1',
      apiusername = 'xxx',
      apikey = 'yyy',
      sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Inbox');

 

Could anyone point me into the right direction of how to implement cursor-based pagination so the sheet/script keeps working?

 

Thanks a lot

0 Likes