fix readme & setup.py

This commit is contained in:
Alex Lushpai 2018-03-20 20:50:22 +03:00
parent 5e154a2f02
commit 69384fdcf3
2 changed files with 5 additions and 7 deletions

View File

@ -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',

View File

@ -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',