Skip to content

Commit

Permalink
Merge pull request #86 from dpslwk/master
Browse files Browse the repository at this point in the history
Adding orders_count method, and fix up products_count
  • Loading branch information
mattolson committed Mar 12, 2015
2 parents d0802bb + 3c5609a commit 095245a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/bigcommerce/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ def update_order(id,options={})
@connection.put("/orders/#{id}", options)
end

def orders_count(options={})
@connection.get("/orders/count", options)
end

def orders_coupons(id,options={})
@connection.get("/orders/#{id}/coupons", options)
end
Expand Down Expand Up @@ -297,8 +301,8 @@ def products(options={})
@connection.get("/products", options)
end

def products_count
@connection.get '/products/count'
def products_count(options={})
@connection.get('/products/count', options)
end

def product(id,options={})
Expand Down

0 comments on commit 095245a

Please sign in to comment.