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.pro', '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.pro', '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.pro', '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)
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.1.tar.gz
(9.1 kB
view hashes)
Built Distribution
retailcrm-5.1.1-py3-none-any.whl
(11.9 kB
view hashes)
Close
Hashes for retailcrm-5.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d5dd2e5862d0304800266bc4a50550bf3bd98045618f18229ed70babba30295 |
|
MD5 | 5f2078b5227d283e5adef1fa015268f4 |
|
BLAKE2b-256 | 3b90673ca2fe961fe49dc23101ac8250e979c629820bc9e403956571915f6f71 |