mirror of
https://github.com/retailcrm/api-client-python.git
synced 2024-11-24 22:16:06 +03:00
commit
f9a10e59c5
@ -24,7 +24,7 @@ pip install retailcrm
|
|||||||
import retailcrm
|
import retailcrm
|
||||||
|
|
||||||
|
|
||||||
client = retailcrm.v3('https://demo.intarocrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')
|
client = retailcrm.v3('https://demo.retailcrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')
|
||||||
|
|
||||||
order = {
|
order = {
|
||||||
'firstName': 'John',
|
'firstName': 'John',
|
||||||
@ -45,7 +45,7 @@ result = client.order_create(order)
|
|||||||
import retailcrm
|
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'})
|
result = client.customers_history(filter={'sinceId': '1500', 'startDate': '2018-03-01'})
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ print(result['pagination']['totalCount'])
|
|||||||
import retailcrm
|
import retailcrm
|
||||||
|
|
||||||
|
|
||||||
client = retailcrm.v5('https://demo.intarocrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')
|
client = retailcrm.v5('https://demo.retailcrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')
|
||||||
site = 'example-com'
|
site = 'example-com'
|
||||||
task = {
|
task = {
|
||||||
'text': 'Product availability problem',
|
'text': 'Product availability problem',
|
||||||
|
6
setup.py
6
setup.py
@ -7,18 +7,16 @@ Setup file
|
|||||||
import os
|
import os
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
# Utility function to read the README file.
|
|
||||||
# Used for the long_description.
|
|
||||||
|
|
||||||
|
|
||||||
def read(fname):
|
def read(fname):
|
||||||
|
"""Read readme for long description"""
|
||||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='retailcrm',
|
name='retailcrm',
|
||||||
version='5.0.0',
|
version='5.0.0',
|
||||||
description='retailCRM multi version API client',
|
description='retailCRM API client',
|
||||||
long_description=read('README.md'),
|
long_description=read('README.md'),
|
||||||
url='https://github.com/retailcrm/api-client-python',
|
url='https://github.com/retailcrm/api-client-python',
|
||||||
author='retailCRM',
|
author='retailCRM',
|
||||||
|
Loading…
Reference in New Issue
Block a user