/tesla-inventory

Retrieve real-time data from Tesla Inventory.

Primary LanguageJavaScriptMIT LicenseMIT

@teslahunt/title

Last version Build Status Coverage Status NPM Status

Retrieve real-time data from Tesla Inventory.

Install

$ npm install tesla-inventory --save

Usage

const teslaInventory = require('tesla-inventory')

teslaInventory('fr', {
  model: 's',
  condition: 'used'
}).then(results => console.log(results))

API

teslaInventory(inventory, [query], [gotOpts])

inventory

Required
Type: string

The Tesla Inventory identifier, see inventories.

query

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

License

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