diff --git a/sailthru/sailthru_client.py b/sailthru/sailthru_client.py index 8164b76..3180b36 100644 --- a/sailthru/sailthru_client.py +++ b/sailthru/sailthru_client.py @@ -386,7 +386,7 @@ def push_content(self, title, url, description=None, location=None, price=None, tags=None, author=None, site_name=None, - spider=None, vars=None): + spider=None, vars=None, inventory=None): """ Push a new piece of content to Sailthru. @@ -407,6 +407,7 @@ def push_content(self, title, url, @param site_name: site name for the content @param spider: truthy value to force respidering content @param vars: replaceable vars dictionary + @param inventory: integer value indicating current item inventory """ vars = vars or {} @@ -422,6 +423,8 @@ def push_content(self, title, url, data['location'] = date if price is not None: data['price'] = price + if inventory is not None: + data['inventory'] = inventory if description is not None: data['description'] = description if site_name is not None: @@ -789,4 +792,4 @@ def get_last_rate_limit_info(self, action, method): if (action in self.last_rate_limit_info and method in self.last_rate_limit_info[action]): return self.last_rate_limit_info[action][method] - return None \ No newline at end of file + return None