mirror of
https://github.com/retailcrm/api-client-python.git
synced 2024-11-21 20:46:03 +03:00
fix readme & setup.py
This commit is contained in:
parent
5e154a2f02
commit
69384fdcf3
@ -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',
|
||||
|
6
setup.py
6
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',
|
||||
|
Loading…
Reference in New Issue
Block a user