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:

  1. get url = /admin/products.json?limit=250&page={{p}}
  2. assign value of p 1
  3. start calling api. each successful return increase value of p
  4. check if returns less 250 items. if yes, continue next step, else go step 3
  5. exit

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -