Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jordyvanraalte/picqer-client-python
Picqer REST client made in python
https://github.com/jordyvanraalte/picqer-client-python
api picqer python rest-api restclient
Last synced: 8 days ago
JSON representation
Picqer REST client made in python
- Host: GitHub
- URL: https://github.com/jordyvanraalte/picqer-client-python
- Owner: jordyvanraalte
- License: mit
- Created: 2020-12-20T22:20:09.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-04T18:57:27.000Z (about 4 years ago)
- Last Synced: 2024-12-01T17:46:43.342Z (about 1 month ago)
- Topics: api, picqer, python, rest-api, restclient
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Picqer client python by Jordy van Raalte
==========This project is a python package to use the Picqer API for python applications. Compatible with Python >= 3.6
The documentation of Picqer can be found on [picqer.com/en/api](https://picqer.com/en/api)
## Installation
```
pip install picqer-client-python
```## Examples
Installing the package:
```python
from picqer_client_python.picqer_client import Client
```Creating a Picqer client:
```python
client = Client("--API-KEY--", "https://example.picqer.com/api/v1/")
```
Getting the first 100 orders:
```python
# gets the first 100 orders. Use offset to get more orders
client.orders.get_all()
```Create a new product
```python
# create new product
product_object = {
"productcode": "883629-22",
"name": "Hyperkewl Evaporative Cooling Vest Ultra Blue 7-9yr",
"price": 54.46
}# make sure to dump the json.
response = client.products.post(json.dumps(product_object))
print(response.status_code) # 201
```Process backorders:
```python
# processes backorders
client.backorders.process()
```## Bug reporting
If you find any bugs in the application please open up an issue in this repository.