0
votes

I've read the Shopify API docs but I can't figure out how I would call this in my app

I thought this would work: ShopifyAPI::Customer.limit(5) but it throws an error:

NoMethodError: undefined method `limit' for ShopifyAPI::Customer:Class

Any ideas? I can find all the endpoints in the docs, but can't find much about interacting in Rails.

1

1 Answers

0
votes

Not sure if this is the best way, but:

ShopifyAPI::Customer.find(:all, :params => {:limit => 5})