Para exportar los datos de un Device, haz una petición POST a la siguiente URL:
HTTP Method | URL |
---|
POST | https://api.netux.com/api/v2.0/devices/<device_key>/_/values/export/ |
Parameter | Type | Description |
---|
device_key | String | The ID or label of the Device. Label should use the prefix ~ . |
Parameter | Type | Use | Description |
---|
token | String | Authentication | Authentication Token can optionally be sent as a query parameter. |
email | String | Required Parameter | Email to which exported data is sent. |
startDate | Long | Required Parameter | In milliseconds. |
endDate | Long | Required Parameter | In milliseconds. |
timezone | String | | Default is "UTC" . Allowed values are all timezones in pytz.all_timezones . |
format | String | | Allowed values: csv | txt | json | xlsx . Default is csv . |
curl -X POST 'https://api.netux.com/api/v2.0/devices/<device_key>/_/values/export/' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
-d '{"email": "[email protected]"}'