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 975 B
export default class User { constructor(parent) { this.parent = parent; } /** Returns the public key associated with the user. */ async backup_key() { return this.parent._request("GET", "api/1/users/backup_key"); } /** Returns any custom feature flag applied to a user. */ async feature_config() { return this.parent._request("GET", "api/1/users/feature_config"); } /** Returns a summary of a user's account. */ async me() { return this.parent._request("GET", "api/1/users/me"); } /** Returns the active orders for a user. */ async orders() { return this.parent._request("GET", "api/1/users/orders"); } /** Returns a user's region and appropriate fleet-api base URL. Accepts no parameters, response is based on the authentication token subject. */ async region() { return this.parent._request("GET", "api/1/users/region"); } } //# sourceMappingURL=user.js.map