A package for end users to use the API endpoints of SEVEN with ease.
Project description
SEVEN API endpoint package
This package was meant to help the end users to utilise the API endpoints of Seven. In the current verison you can use the following endpoints:
- Store Fields
- Store Data
- Process Fields
- Process Data
- Costs
- Reports
Each of these categories are represented by a class. You can initiate a class instance and use the .call_api() method to get a response.
Installation
You can use your package manager to install from PyPI.
If you are using pip:
python3 -m pip install seven-api-sdk
Examples
import seven_api_sdk
import json
password = "YOUR_SECRET_PASSWORD"
username = "YOUR_USERNAME"
client_id = "YOUR_CLIENT_ID"
client_name = "YOUR_TENANT_NAME"
handler = seven_api_sdk.StoreFields(username=username,password=password,client_id=client_id,client_name=client_name)
data = handler.call_api()
print (json.dumps(data,indent=4))
#You can specify parameters for certain endpoints
handler = seven_api_sdk.ProcessData(username=username,password=password,client_id=client_id,client_name=client_name,parameter="proc_by_storeID")
data = handler.call_api()
print (json.dumps(data,indent=4))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 seven_api_sdk-0.1.4.tar.gz.
File metadata
- Download URL: seven_api_sdk-0.1.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.10.6 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff0f684ae27ef7cbb817df48891a17cd4be6dfff30daa18b6dbec7aa2a05ba87
|
|
| MD5 |
fefe32233035f5d635cb667f7f72cd07
|
|
| BLAKE2b-256 |
40570dbd8a9258967bbd70b03e7d7a61411fe784aa1f440ed6a2d124af3f3ca6
|
File details
Details for the file seven_api_sdk-0.1.4-py3-none-any.whl.
File metadata
- Download URL: seven_api_sdk-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.10.6 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8059e33b6f57fc47e4086257e44c34e27b6c24c379c68d7ba5741c4d39047444
|
|
| MD5 |
b8d1abc2d5600cbb36db2c358d78845a
|
|
| BLAKE2b-256 |
a3df101b7b4517b1caac66f4c1b9b217a012604b9183d0e9bfd8eaf54dd8f9b1
|