Skip to content

Commit

Permalink
feat(GlpiRestClient): get devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianfranco97 authored and Hector Rondon committed Jan 19, 2018
1 parent 1d6875a commit fc5cd3f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/restclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,19 @@ class GlpiRestClient {
}
})
}

getDevices () {
return new Promise( async (resolve, reject) => {
try {
resolve (
await this.getAllItems('PluginFlyvemdmAgent')
)
}
catch (err) {
reject(err)
}
})
}
}

export default GlpiRestClient

0 comments on commit fc5cd3f

Please sign in to comment.