Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zypp-io/unit4
Project for pulling datasets using the Unit4 Multivers API
https://github.com/zypp-io/unit4
Last synced: 1 day 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 (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-24T21:31:27.000Z (about 2 months ago)
- Last Synced: 2024-12-25T03:32:26.478Z (16 days 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[![Open Source](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://opensource.org/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![PyPI](https://img.shields.io/pypi/v/unit4)](https://pypi.org/project/unit4/)
[![Latest release](https://badgen.net/github/release/zypp-io/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)