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
24 lines (23 loc) • 962 B
TypeScript
import TeslaFleetApi from "./teslafleetapi.js";
export default class Partner {
parent: TeslaFleetApi;
constructor(parent: TeslaFleetApi);
/**
* Returns the public key associated with a domain. It can be used to ensure the registration was successful.
* @param domain Domain of the partner account.
* @returns
*/
public_key(domain?: string | null): Promise<Record<string, any>>;
/**
* Registers an existing account before it can be used for general API access. Each application from developer.tesla.com must complete this step.
* @param domain Domain of the partner account.
* @returns
*/
register(domain: string): Promise<Record<string, any>>;
/**
* Returns recent fleet telemetry errors reported by vehicles after receiving the config.
* @param domain Domain of the partner account.
* @returns
*/
fleet_telemetry_errors(domain: string): Promise<Record<string, any>>;
}