/battery-capacity.js Secret
Created
February 9, 2021 15:30
This file contains 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 smartcar = require('smartcar'); | |
// Construct a new vehicle instance | |
const vehicle = new smartcar.Vehicle("<vehicle-id>", "<access-token>"); | |
// Retrieve the vehicle's battery capacity | |
const batteryCapacity = await vehicle.batteryCapacity(); | |
console.log(batteryCapacity); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment