Skip to content

Commit

Permalink
new search route
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed May 31, 2016
1 parent a1c9778 commit 04e1632
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/budy/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ def get_product(self, id):
contents = self.get(url, auth = False)
return contents

def search_products(self, *args, **kwargs):
url = self.base_url + "products/search"
contents = self.get(
url,
auth = False,
**kwargs
)
return contents

def related_product(self, id, *args, **kwargs):
url = self.base_url + "products/%d/related" % id
contents = self.get(
Expand Down

0 comments on commit 04e1632

Please sign in to comment.