Merge branch 'main' into dev

This commit is contained in:
Jason SECULA
2025-09-12 12:06:23 +02:00
3 changed files with 25 additions and 3 deletions

View File

@ -82,6 +82,17 @@ class GLPIAPI:
}
uri = f"{self.Server}/apirest.php/Computer/"
return requests.put(uri, headers=self.Headers, json=body)
def UpdateUser(self, deviceid, username):
body = {
"input" : {
"id" : deviceid,
"users_id" : username
}
}
uri = f"{self.Server}/apirest.php/Computer/"
return requests.put(uri, headers=self.Headers, json=body)
def CreateInventoryForAirwatchDevice(self, device, deviceName, apps=None):
platforms = {