I’m currently working with the Shopify API and trying to handle paginated responses from their API.
I think I need to extract the second URL in the below example to make the next call in the series…
"link": "<https://userloop-development.myshopify.com/admin/api/2021-07/orders.json?limit=10&page_info=eyJkaXJlY3Rpb24iOiJwcmV2Iiwic3RhdHVzIjoiYW55IiwibGFzdF9pZCI6NDI4MTgzODk2MDgxNywibGFYWx1ZSI6IjIwMjEtMTItMDcgMTE6MTk6NDguOTczMTYzIn0>; rel=\"previous\", <https://userloop-development.myshopify.com/admin/api/2021-07/orders.json?limit=10&page_info=eyJk3Rpb24iOiJuZXh0Iiwic3RhdHVzIjoiYW55IiwibGFzdF9pZCI6NDI2MDU2NDc5NTU2OSwibGFzdF92YWx1ZSI6IjIwMjEtMTEtMjMgMTY6MTU6NTYuMzY5NzkzIn0>; rel=\"next\"",
Does anyone have any idea how I could extract the second URL in that block, perhaps something using regex?
I am a bit stuck with it at the moment!