mirror of
https://github.com/retailcrm/api-client-python.git
synced 2024-11-22 04:56:04 +03:00
542 B
542 B
api-client-python
RetailCrm REST API client (python version)
##Setup
git clone https://github.com/retailcrm/api-client-python.git
cd api-client-python
pip install requests
python setup.py install
##Usage
from retailcrm import Client
crm = Client('https://demo.intarocrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')
order = {
'firstName': 'Ivan',
'lastName': 'Ivanov',
'phone': '+79000000000',
'email': 'ivan@example.com',
'orderMethod': 'call-request',
}
result = crm.orderCreate(order)