I’m having trouble getting control of the REST api export command. The best I can do based on the example on https://docs.losant.com/rest-api/device/#export is to get data sent to my email using the following Curl example (the token and id strings are disguised). Unfortunately, I cannot get it to recognize the start and end times. It sends all of my data, no matter what I do.
I’ve also tried implementing this using Electric Imp agent code, with similar results. Any tips or examples would be much appreciated.
curl -H ‘Content-Type: application/json’
-H ‘Accept: application/json’
-H 'Authorization: Bearer eyJhbGciOiJIUzI1… YOUR_API_ACCESS_TOKEN …k-wgdGW1szQM’
-X POST https://api.losant.com/applications/5c204… APPLICATION_ID …68b814/devices/5c282a… DEVICE_ID …email@example.com