Metadata-Version: 2.1
Name: unit4
Version: 0.0.1
Summary: Package for pulling datasets using the Unit4 Multivers API
Home-page: https://github.com/zypp-io/sampleproject
Author: Melvin Folkers (Zyp)
Author-email: melvin@zypp.io, hello@zypp.io
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/zypp-io/unit4/issues
Project-URL: Source, https://github.com/zypp-io/unit4
Keywords: python,sampleproject
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

<p align="center">
  <img alt="logo" src="https://www.zypp.io/static/assets/img/logos/zypp/white/500px.png"  width="200"/>
</p>

Template repository for packages
===
> Package for pulling datasets using the Unit4 Multivers API


## Installation
```commandline
pip install unit4
```

## Usage
for an extensive list of examples, please refer to the [Unit4 test suite](unit4/tests/test_unit4.py).

```python
from unit4 import Unit4

unit4 = Unit4()
data = unit4.request_data(endpoint="/api/AdministrationGroupList/All")

```

## environment variables
The following environment variables need to be set:
- UNIT4_CLIENT_ID: the client id of the registered application
- UNIT4_CLIENT_SECRET: the client secret associated with the application
- UNIT4_REFRESH_TOKEN: The refresh token. To obtain the refresh token, please refer to the official [Unit 4 API Documentation](https://api.online.unit4.nl/V221/Documentation/Guide/OAuth)


