retailCRM API client
Project description
This is python retailCRM API client. This library allows to use all available API versions.
Install
pip install retailcrm
Usage
# coding utf-8
import retailcrm
client = retailcrm.v3('https://demo.retailcrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')
order = {
'firstName': 'John',
'lastName': 'Doe',
'phone': '+79000000000',
'email': 'john@example.com',
'orderMethod': 'call-request',
}
result = client.order_create(order)
# coding utf-8
import retailcrm
client = retailcrm.v4('https://demo.retailcrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')
result = client.customers_history(filter={'sinceId': '1500', 'startDate': '2018-03-01'})
print(result['pagination']['totalCount'])
# coding utf-8
import retailcrm
client = retailcrm.v5('https://demo.retailcrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')
site = 'example-com'
task = {
'text': 'Product availability problem',
'commentary': 'Take a look ASAP',
'order': {
'externalId': '100500'
},
'performerId': 1
}
result = client.task_create(task, site)
Documentation
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
retailcrm-5.1.0.tar.gz
(8.2 kB
view hashes)
Built Distribution
retailcrm-5.1.0-py3-none-any.whl
(11.9 kB
view hashes)
Close
Hashes for retailcrm-5.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2181647c85b7695a87fd0df224be24ea0ca7daeb6d2c1e138126273d2ed0fe6a |
|
MD5 | e4681b532bd2e25ce89fe64f70e3f1ff |
|
BLAKE2b-256 | 622ce3ca5d2504b2b962e916245fc90bbd63f7b3615b4527d2a35ce06229fd10 |