npm.io
1.0.1 • Published 6 years ago

x-cite-listreports

Licence
Version
1.0.1
Deps
11
Size
2.5 MB
Vulns
0
Weekly
0

Available Scripts

In you project directory, run this script to install the package:

npm i x-cite-listreports

To start using the package , import the module into your component

import {SensorService} from 'x-cite-listreports'

instantiate your class into a front end component with this two params: ApiEndPoint and token

this.sensorService = new SensorService([apiEndpoint],[token]);

then you will be able to call the method from the service

this.sensorService.getListReportsService( [id_of_the_room], async (status) => {
    console.log(status)
}, async (data) => {
    console.log(data)
})