UNPKG

tesla-fleet-api

Version:

A library for the [Tesla Fleet API](https://developer.tesla.com/docs/fleet-api), and the third parties services [Teslemetry](https://teslemetry.com/docs/getting-started/api) and [Tessie](https://developer.tessie.com/docs/tesla-api-comparison), which provi

26 lines (25 loc) 688 B
import TeslaFleetApi from "./teslafleetapi.js"; import { Scope } from "./types/commands.js"; type Region = "na" | "eu" | "api"; type Test = { response: boolean; }; type Metadata = { uid: string; region: "NA" | "EU"; scopes: Scope[]; vins: string[]; }; export default class Telemetry extends TeslaFleetApi { constructor(accessToken: string, region?: Region); /** * Test the connection to Teslemetry */ test(): Promise<Test>; /** * Get details about your Teslemetry account * @param update_region Update the server URL based on the region in the metadata */ metadata(update_region?: boolean): Promise<Metadata>; } export {};