Retrieve the events settings of a device.
Successful operation
Bad request error
Unauthorized error
Forbidden error
Not found error
Internal server error
curl -i -X GET \ https://api-prod.surfsight.net/v2/devices/:imei/event-config \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "data": {
- "vehicleType": "Private",
- "events": [
- {
- "eventType": "cellPhoneUse",
- "dataType": "none",
- "weight": 3,
- "speedLimit": 120,
- "numberOfBeeps": 2,
- "minimumSpeed": 60,
- "config": {
- "headwayAlertDayThreshold": 2000,
- "headwayAlertNightThreshold": 3000,
- "headwayAlertTime": 3000,
- "timeWindow": 0,
- "numberOfYawns": 1,
- "assumeMoving": false
}, - "laneWeavingTimes": 3,
- "laneWeavingDurationSeconds": 30,
- "drivingDuration": 8,
- "visualAlert": true,
- "audioAlert": true
}
]
}
}