Going over the API limit in Shopify? -
i need maximum of 250 products 1 api call. how can archive this? unfortunately have no experience in ruby. maybe can wise me direction.
thank you,
you cannot increase limit beyond 250 per page. nevertheless use page parameter next 250 products. i'm not aware of ruby logical flow:
- get url =
/admin/products.json?limit=250&page={{p}} - assign value of
p1 - start calling api. each successful return increase value of
p - check if returns less
250items. if yes, continue next step, else go step 3 - exit
Comments
Post a Comment