Metadata-Version: 2.1
Name: seven-api-sdk
Version: 0.1.5
Summary: A package for end users to use the API endpoints of SEVEN with ease.
License: MIT
Author: Daniel Molnar
Author-email: daniel@prjct8.ch
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: boto3 (>=1.26.24,<2.0.0)
Requires-Dist: requests (>=2.28.1,<3.0.0)
Description-Content-Type: text/markdown

# 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))
```
