api-client-python/README.md

32 lines
497 B
Markdown
Raw Normal View History

2016-03-17 00:54:42 +03:00
retailCRM API python client
===========================
2014-09-11 11:16:44 +04:00
2016-03-17 00:54:42 +03:00
### Install
2015-03-12 16:08:55 +03:00
```
2016-03-17 00:54:42 +03:00
pip install retailcrm
2015-03-12 16:08:55 +03:00
```
2016-03-17 00:54:42 +03:00
### Usage
2015-03-12 16:08:55 +03:00
```python
2016-03-17 00:54:42 +03:00
import retailcrm
2015-03-12 16:08:55 +03:00
2016-03-17 00:54:42 +03:00
client = retailcrm.Client('https://demo.intarocrm.ru', 'uLxXKBwjQteE9NkO3cJAqTXNwvKktaTc')
2015-03-12 16:08:55 +03:00
order = {
'firstName': 'Ivan',
'lastName': 'Ivanov',
'phone': '+79000000000',
'email': 'ivan@example.com',
'orderMethod': 'call-request',
}
2016-03-17 00:54:42 +03:00
result = crm.orders_create(order)
2015-03-12 16:08:55 +03:00
```
2016-03-17 00:54:42 +03:00
### Documentation
* http://www.retailcrm.pro/docs/Developers/ApiVersion3