Forked from DrewMartin/gist:43c47abb611eeefd534baff1c2e70964
Last active
November 7, 2022 13:35
-
-
Save shopifypartners/c492742a448bae4739b2a5bb57338919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
products = ShopifyAPI::Product.find(:all, params: { order: 'inventory_total desc', limit: 250 }) | |
process_products(products) | |
3.times do | |
break unless products.next_page? | |
products = products.fetch_next_page | |
process_products(products) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Informative code