Skip to content

Instantly share code, notes, and snippets.

@charlottekosche
Created February 9, 2021 15:30
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