Admin Resources Now Countable

After listening to early adopters of the Shopify API in the Developer Forums, we’ve rolled out the ability to issue count requests on resources like

Order
and
Product

The count requests look like and take the same conditions and parameters you’d give to the existing find request you’re used to – they just return a count of how many orders, products or other resource you’re querying for.

Here’s an example of how to ask how many orders have yet to be shipped:

  http://snowdevil.myshopify.com/admin/orders/count?fulfillment_status=unshipped
We’ve also added counting to the ShopifyAPI library that comes with the shopify_app plugin, so you can now write
  ShopifyAPI::Order.count(:status => "unshipped")
and you’ll get back just what you expect.

Check out the updated docs in http://api.shopify.com and the open-source shopify_app plugin at Github.

Comments

Karen

Karen July 17, 2009 08:00AM EDT

Please get rid of mugwort maggie’s!!!!
She was quick to take my money, but after countless e-mails, and a couple of years, never heard from her again.

cod liver oil vs fish oil

cod liver oil vs fish oil August 07, 2011 02:21AM EDT

Hello! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no back up. Do you have any methods to protect against hackers?

aarondiazxm

aarondiazxm November 17, 2011 08:15PM EST

Loestrin 24 Fe Patient Savings Card
Appear your perfect with Loestrin 24 Coupon
Loestrin 24 Coupon

Leave a Comment

Your email address will not be published.