diff --git a/insales/api.py b/insales/api.py index 7616d63..aa07127 100644 --- a/insales/api.py +++ b/insales/api.py @@ -471,8 +471,10 @@ def delete_blog(self, blog_id): #======================================================================== # Статьи (в блоге) #======================================================================== - def get_articles(self, blog_id): - return self._get('/admin/blogs/%s/articles.xml' % blog_id) + def get_articles(self, blog_id, per_page = 10, page = 1): + "Get orders: https://api.insales.ru/?doc_format=XML#article-get-articles-list-xml" + qargs = {"per_page": per_page, "page": page} + return self._get('/admin/blogs/%s/articles.xml' % blog_id, qargs) or [] def get_article(self, blog_id, article_id): return self._get('/admin/blogs/%s/articles/%s.xml' % (blog_id, article_id)) diff --git a/setup.py b/setup.py index 347752d..a1357f7 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name='pyinsales', - version='1.7.0', + version='1.8.0', description='InSales e-commerce platform API bindings', long_description=readme_content, long_description_content_type="text/markdown",