Skip to content

Instantly share code, notes, and snippets.

@blangel
blangel / PreSignedUrl.json
Created October 2, 2018 15:55
Dash Fleet API - PreSignedUrl Example JSON
{"preSignedImageUrl":"https://aws.amazon.com/s3/kfjdakfjgkejkgejk"}
@blangel
blangel / OrderDeviceRequest.json
Created October 2, 2018 16:05
Dash Fleet API - OrderDeviceRequest Example JSON
{"id":"USER_ID",
"dateTime":"DATE_TIME",
"companyName":"USER_COMPANY_NAME",
"phoneNumber":"USER_PHONE_NUMBER",
"address":"USER_LOCATION_ADDRESS",
"numberDevices":"NUMBER_DEVICES",
"notes":"NOTES"
}
@blangel
blangel / DriveReportRequest.json
Created October 2, 2018 16:12
Dash Fleet API - DriveReportRequest Example JSON
{"email":"USER_EMAIL",
"start":START_EPOCH_TIMESTAMP,
"end":END_EPOCH_TIMESTAMP
}
@blangel
blangel / PageResult.json
Created October 2, 2018 16:24
Dash Fleet API - PageResult Example JSON
{"result":RESULT_ARRAY_OR_OBJ,
"nextToken":"akfjd229k2jfkehkfehkfjd3j4kfnek"}
@blangel
blangel / Alert.json
Last active November 7, 2018 16:13
Dash Fleet API - Alert Example JSON
{"id":"25e98244-c660-11e8-a355-529269fb1459::EngineLight",
"dateTime":1538497860000,
"type":"EngineLight",
"driverId":"1b671a64-40d5-491e-99b0-da01ff1f3341",
"vehicleId":"e8b5a51d-11c8-3310-a6ab-367563f20686",
"location":LOCATION_OBJ,
"title":"Engine light issues",
"description":"",
"dtcs":[ { DIAGNOSTIC_TROUBLE_CODE_OBJ }, ...],
"resolvedDateTime":1538497861000
@blangel
blangel / DriverInfo.json
Last active October 2, 2018 18:41
Dash Fleet API - DriverInfo Example JSON
{"driver":{ DRIVER_OBJ },
"dateTime":1538352000000,
"endDateTime":1541030399999,
"score":{ SCORE_OBJ },
"scoreComponents":[{ SCORE_OBJ }, ...],
"latestDrive": { DRIVE_OBJ }
}
@blangel
blangel / VehicleInfo.json
Last active February 21, 2019 17:33
Dash Fleet API - VehicleInfo Example JSON
{"vehicle":{ VEHICLE_OBJ },
"dateTime":1538352000000,
"endDateTime":1541030399999,
"score":{ SCORE_OBJ },
"scoreComponents":[{ SCORE_OBJ }, ...],
"latestDrive": { DRIVE_OBJ },
"latestEngineLightAlert": { ALERT_OBJ },
"lastKnownLocation": { LOCATION_OBJ }
}
@blangel
blangel / Score.json
Created October 2, 2018 18:57
Dash Fleet API - Score Example JSON
{"id":"ba22b818-c674-11e8-a355-529269fb1459:Safety",
"dateTime":1541030399000,
"type":"Safety",
"vehicleId":"e8b5a51d-11c8-3310-a6ab-367563f20686",
"driverId":"1b671a64-40d5-491e-99b0-da01ff1f3341",
"score":89,
"distanceDriven":100,
"distanceUnit":"Miles"
}
@blangel
blangel / Drive.json
Created October 2, 2018 19:04
Dash Fleet API - Drive Example JSON
{"id":"2d708886-c675-11e8-a355-529269fb1459",
"adminUserId":"45745c60-7b1a-11e8-9c9c-2d42b21b1a3e",
"vehicleId":"e8b5a51d-11c8-3310-a6ab-367563f20686",
"driverId":"1b671a64-40d5-491e-99b0-da01ff1f3341",
"dateTime":1541030399000,
"endDateTime":1541035220000,
"startTimeZoneId":"America/New_York",
"endTimeZoneId":"America/New_York",
"startLocation":{ LOCATION_OBJ },
"endLocation":{ LOCATION_OBJ },
@blangel
blangel / LocationTag.json
Created October 2, 2018 19:08
Dash Fleet API - LocationTag Example JSON
{"id":"2d708886-c675-11e8-a355-529269fb1459:start:1541035220000",
"deviceId":"2d708886-c675-11e8-a355-529269fb1459",
"category":"Restaurants",
"categoryImageUrl":"https://dash.by/s/kfjdojof393",
"name":"Al Di La",
"location":{ LOCATION_OBJ }
}