Interface for the PlentyMarkets API.
Project description
Overview
Interface for the PlentyMarkets API.
Setup
Requirements
- Python 3.7.8+
Installation
Install it directly into an activated virtual environment:
$ pip install python_plenty_api
or add it to your Poetry project:
$ poetry add python_plenty_api
Usage
After installation, the package can imported:
$ python
>>> import plenty_api
>>> plenty_api.__version__
Examples
import plenty_api
def main():
# Get the bearer token and set the basic attributes for an endpoint
plenty = plenty_api.PlentyApi(base_url='https://{your-shop}.plentymarkets-cloud01.com', # available under setup->settings->API->data
use_keyring=True, # Save the credentials into your system wide Keyring or not
data_format='json', # Choose the output format (default JSON)
debug=True) # display the constructed endpoint before making the request
orders = plenty.plenty_api_get_orders_by_date(start='2020-09-20',
end='2020-09-24',
date_type='payment', # Get orders that were payed in between [start] and [end]
additional=['documents', 'locations'], # Include additional attributes to the response
refine={'orderType': '1', 'referrerId': '1'}) # Only get orders with type 1 and from referrer 1
if __name__ == '__main__':
main()
Contact
Author: Sebastian Fricke, Company: Panasiam, Email: sebastian.fricke.linux@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plenty_api-0.2.2.tar.gz
(23.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plenty_api-0.2.2.tar.gz.
File metadata
- Download URL: plenty_api-0.2.2.tar.gz
- Upload date:
- Size: 23.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.7.3 Linux/5.8.0-rc6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61d7362d7828476044b88c7f16d4e7a8d499b27121a9e761f39b645563ec0ac0
|
|
| MD5 |
1de987bed618756ccd2ffde7890ee670
|
|
| BLAKE2b-256 |
bd8d3821d2bf13665e0cff6744af7c255a67219eb44b00348e6391350488c974
|
File details
Details for the file plenty_api-0.2.2-py3-none-any.whl.
File metadata
- Download URL: plenty_api-0.2.2-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.7.3 Linux/5.8.0-rc6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4da0f8452a81b0eac8bfb5d90a77f9ed56cceba61d76e4664edf0157576f056
|
|
| MD5 |
eb29116e8d2f06225eb262a96a9fc5a7
|
|
| BLAKE2b-256 |
914edd5f10e6bdb2c733b50dcd2170af5680109bbeb95a36a12271150501865d
|