Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bzdvdn/retailcrm-api
RetailCRM API v5 wrapper
https://github.com/bzdvdn/retailcrm-api
pip python python3 retailcrm
Last synced: 3 days ago
JSON representation
RetailCRM API v5 wrapper
- Host: GitHub
- URL: https://github.com/bzdvdn/retailcrm-api
- Owner: bzdvdn
- Created: 2019-07-15T18:22:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-25T07:16:20.000Z (over 5 years ago)
- Last Synced: 2024-08-10T23:44:16.492Z (5 months ago)
- Topics: pip, python, python3, retailcrm
- Language: Python
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RetailCRM API v5 wrapper
# Installation
Install using `pip`...
pip install retail-crm api
Or
git clone https://github.com/bzdvdn/retailcrm-api.git
python3 setup.py
# Usage
```python
from retail import RetailAPI
api = RetailAPI("https://shop123.retailcrm.ru", "") # init retail apiorders = api.orders() # return full paginated rusults from /api/v5/orders endpoint
orders_history = api.orders.history() # return full paginated rusults from /api/v5/orders/history endpoint# add order or another object
import json
json_params = {"firstName": "Test", "lastName": "Test"}
data = {"site": "shop-ru", "order": json.dumps(json_params)}
new_order = api.orders.create(params=data) # creating new order# update order ot another object
import json
json_params = {"firstName": "UpdatedName", "lastName": "UpdatedLastName"}
data = {"site": "shop-ru", "order": json.dumps(json_params)}
update_order = api.orders.edit(object_id="", params=data)```
# TODO
* full documentation(all retail methods)
* examples
* async version
* tests