Files
GLPIAPI/README.md
Jason Secula 123d7d1ecf
All checks were successful
Build python package / Build (push) Successful in 24s
Initial commit
2026-02-18 10:58:06 +01:00

24 lines
575 B
Markdown

# GLPIAPI
A python module to help making API requests to GLPI servers easier.
Usage
================
You can create an GLPIAPI object to connect to the API using an APpToken and an UserToken.
Example :
```python
from GLPIAPI import GLPIAPI
glpiServer = https://my-glpi-server.local
glpiAppToken = "YOUR-APP-TOKEN"
glpiUserToken = "YOUR-USER-TOKEN"
glpiUserAgent = "GLPI API Connector"
GLPIConnector = GLPIAPI(Server=glpiServer, AppToken=glpiAppToken, UserToken=glpiUserToken, UserAgent=glpiUserAgent)
device = GLPIConnector.GetDevice(serialNumber="S0123456789")
```