Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.28 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.28 KB

logo

Unit4 Multivers API

Package for pulling datasets using the Unit4 Multivers API

Open Source Code style: black PyPI Latest release

Installation

pip install unit4

Usage

for an extensive list of examples, please refer to the Unit4 test suite.

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