Tesla-Vehicles-Api
A Node module for the Tesla Vehicle Owners API in Typescript.
Documentation
Prerequisites
- Node 10+
Installation
Install the dependencies and devDependencies and start the server.
$ npm install --save tesla-vehicles-api
Usage
; or const CLIENT = client; let _client = ||; // let _client = new CLIENT||client({ // access_token: '123456789123456789', // refresh_token: 'asdasdasdasdasdasd' // }); _client; // Skip this if you already have the token
Enums Usage
;
Development
Want to contribute? Great! Make a Pr! Open your favorite Terminal and run these commands.
Building for source
To release in javascript. The output is dumped in the dist folder:
$ npm run build
Testing
-
Uses Jest, Supertest, Chai - Integration Tests needed
npm test