Skip to content

Commit fc5cd3f

Browse files
Gianfranco97Hector Rondon
authored andcommitted
feat(GlpiRestClient): get devices
1 parent 1d6875a commit fc5cd3f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/restclient.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,19 @@ class GlpiRestClient {
463463
}
464464
})
465465
}
466+
467+
getDevices () {
468+
return new Promise( async (resolve, reject) => {
469+
try {
470+
resolve (
471+
await this.getAllItems('PluginFlyvemdmAgent')
472+
)
473+
}
474+
catch (err) {
475+
reject(err)
476+
}
477+
})
478+
}
466479
}
467480

468481
export default GlpiRestClient

0 commit comments

Comments
 (0)