Hi
I am going to get messages for a specific device.
I tried to do it like this.
var device_params = JSON.stringify({"from":1614470400,"to":1614556799,"fields":"timestamp,position.latitude,position.longitude"})
const response = await axios({
method: 'GET',
url: https://flespi.io/gw/devices/{device_id}/messages,
headers: {
Authorization: FlespiToken ${FLESPI_API_TOKEN},
},
data: device_params
})
But I am getting all messages for the device not filtered by device_params.
How can I get proper messages based on the device_params?
Thank you in advance.