Skip to content

Commit

Permalink
feat: delete product function
Browse files Browse the repository at this point in the history
  • Loading branch information
BeeMargarida committed Apr 15, 2021
1 parent 9624f29 commit aea42b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shopify/product.py
Expand Up @@ -71,6 +71,10 @@ def get_product(self, id):
contents = self.get(url)
return contents["product"]

def delete_product(self, id):
url = self.base_url + "admin/products/%d.json" % id
self.delete(url)

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

0 comments on commit aea42b1

Please sign in to comment.