mirror of
https://github.com/retailcrm/api-client-python.git
synced 2024-11-25 14:36:04 +03:00
32 lines
497 B
Markdown
32 lines
497 B
Markdown
retailCRM API python client
|
|
===========================
|
|
|
|
### Install
|
|
|
|
```
|
|
pip install retailcrm
|
|
```
|
|
|
|
### Usage
|
|
|
|
```python
|
|
import retailcrm
|
|
|
|
|
|
client = retailcrm.Client('https://demo.intarocrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')
|
|
|
|
order = {
|
|
'firstName': 'Ivan',
|
|
'lastName': 'Ivanov',
|
|
'phone': '+79000000000',
|
|
'email': 'ivan@example.com',
|
|
'orderMethod': 'call-request',
|
|
}
|
|
|
|
result = crm.orders_create(order)
|
|
```
|
|
|
|
### Documentation
|
|
|
|
* http://www.retailcrm.pro/docs/Developers/ApiVersion3
|