x-cite-listreports

list Reports backend package

Usage no npm install needed!

<script type="module">
  import xCiteListreports from 'https://cdn.skypack.dev/x-cite-listreports';
</script>

README

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)
})