https://github.com/zypp-io/unit4
Project for pulling datasets using the Unit4 Multivers API
https://github.com/zypp-io/unit4
Last synced: 3 months ago
JSON representation
Project for pulling datasets using the Unit4 Multivers API
- Host: GitHub
- URL: https://github.com/zypp-io/unit4
- Owner: zypp-io
- License: mit
- Created: 2021-11-30T08:44:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-24T21:31:27.000Z (8 months ago)
- Last Synced: 2025-04-22T17:24:44.009Z (3 months ago)
- Language: Python
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
Unit4 Multivers API
===
> Package for pulling datasets using the Unit4 Multivers API[](https://opensource.org/)
[](https://github.com/psf/black)
[](https://pypi.org/project/unit4/)
[](https://github.com/zypp-io/unit4/releases)## 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 Unit4unit4 = 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)