This commit is contained in:
23
README.md
Normal file
23
README.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# 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")
|
||||
```
|
||||
Reference in New Issue
Block a user