tesla

package
v0.0.0-...-a72aadb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OwnerAPI

type OwnerAPI interface {
	// Login will, given a username, password, and optional MFA authcode, return the accessToken and refreshToken
	Login(usernameFn, passwordFn, authcodeFn func() string) (accessToken, refreshToken string, err error)
	GetOwnerToken(accessToken string) (string, error)
}

OwnerAPI is a listing of all the compatible OwnerAPI we have access to

func New

func New(p Params) (OwnerAPI, error)

New creates a new OwnerAPI session

type Params

type Params struct {
	// SaveHTML will, if set, output the raw outputs of the HTTP calls made. Useful for debugging and upgrading unit tests.
	SaveHTML bool
	SaveDir  string
}

Params allows you to configure how the OwnerAPI actions in the background

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL