Skip to content

Commit

Permalink
added related products api
Browse files Browse the repository at this point in the history
  • Loading branch information
tsilva committed May 5, 2016
1 parent 5384ced commit 92de2cc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/budy/product.py
Expand Up @@ -52,3 +52,12 @@ def get_product(self, id):
url = self.base_url + "products/%d" % id
contents = self.get(url, auth = False)
return contents

def get_product_related(self, id, *args, **kwargs):
url = self.base_url + "products/%d/related" % id
contents = self.get(
url,
auth = False,
**kwargs
)
return contents

0 comments on commit 92de2cc

Please sign in to comment.