Retrieve real-time data from Tesla Inventory.
$ npm install tesla-inventory --save
const teslaInventory = require('tesla-inventory')
teslaInventory('fr', {
model: 's',
condition: 'used'
}).then(results => console.log(results))
Required
Type: string
The Tesla Inventory identifier, see inventories
.
Type: object
The query options to be passed agaisnt Tesla Inventory API.
These options can be:
- arrangeby: Price
- condition: used|new
- model: ms|mx|m3
- order: asc|desc
tesla-inventory © Kiko Beats, released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors.
kikobeats.com · GitHub Kiko Beats · Twitter @Kikobeats