diff --git a/README.md b/README.md index ba77c90..6038b4c 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ pip install retailcrm import retailcrm -client = retailcrm.v3('https://demo.intarocrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc') +client = retailcrm.v3('https://demo.retailcrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc') order = { 'firstName': 'John', @@ -45,7 +45,7 @@ result = client.order_create(order) import retailcrm -client = retailcrm.v4('https://demo.intarocrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc') +client = retailcrm.v4('https://demo.retailcrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc') result = client.customers_history(filter={'sinceId': '1500', 'startDate': '2018-03-01'}) @@ -60,7 +60,7 @@ print(result['pagination']['totalCount']) import retailcrm -client = retailcrm.v5('https://demo.intarocrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc') +client = retailcrm.v5('https://demo.retailcrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc') site = 'example-com' task = { 'text': 'Product availability problem', diff --git a/setup.py b/setup.py index 1be3644..5bbe177 100644 --- a/setup.py +++ b/setup.py @@ -7,18 +7,16 @@ Setup file import os from setuptools import setup -# Utility function to read the README file. -# Used for the long_description. - def read(fname): + """Read readme for long description""" return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='retailcrm', version='5.0.0', - description='retailCRM multi version API client', + description='retailCRM API client', long_description=read('README.md'), url='https://github.com/retailcrm/api-client-python', author='retailCRM',