This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "approved_at": { | |
| "operator": "gte", | |
| "value": "2024-01-01T00:01:00Z" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "status": { | |
| "operator": "in", | |
| "value": [ | |
| "approved", | |
| "rejected" | |
| ] | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "vehicles": [ | |
| { | |
| "vin": "VIN012345678901234", | |
| "brand": "bmw", | |
| "tags": { | |
| "sub-fleet": "3C88E2B5-680D-408D-9013-139580256F18" | |
| } | |
| } | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const jwt = require('jsonwebtoken') | |
| const uuid4 = require('uuid4') | |
| const payload = { | |
| ver: REST_API_CONFIG.version, | |
| iss: REST_API_CONFIG.client_serial_number, | |
| aud: REST_API_CONFIG.app_uri, | |
| iat: Math.round(Date.now() / 1000), | |
| jti: uuid4(), | |
| sub: ACCESS_TOKEN, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| 0x0b, # Protocol Version is Level 11 | |
| 0x00, 0x11, # Message Identifier for Vehicle Status | |
| 0x00, # Command Type for Get Vehicle Status Properties | |
| 0x01, # Property ID for VIN | |
| 0x02, # Property ID for Powertrain | |
| 0x03, # Property ID for Model name | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mileage": { | |
| "value": 150000, | |
| "timestamp": "2020-02-26T09:59:40.290Z" | |
| }, | |
| "engineOilTemperature": { | |
| "value": 99, | |
| "timestamp": "2020-02-26T09:59:40.290Z" | |
| }, | |
| "speed": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "tirePressures": [ | |
| { | |
| "value": { | |
| "location": "front_left", | |
| "pressure": 2.31 | |
| }, | |
| "timestamp": "2020-02-26T09:59:40.290Z" | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "washerFluidLevel": { | |
| "value": "filled", | |
| "timestamp": "2020-02-26T09:59:40.290Z" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "locks": [ | |
| { | |
| "value": { | |
| "location": "front_left", | |
| "lock_state": "unlocked" | |
| }, | |
| "timestamp": "2020-02-26T09:59:40.290Z" | |
| }, | |
| { |