All checks were successful
Build python package / Build (push) Successful in 24s
24 lines
575 B
Markdown
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")
|
|
```
|