client

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlexaClient

type AlexaClient struct {
	// contains filtered or unexported fields
}

func (*AlexaClient) GetDevices

func (c *AlexaClient) GetDevices() (devices model.DevicesResponse, err error)

func (*AlexaClient) GetVolume added in v0.0.2

func (c *AlexaClient) GetVolume() (volume model.VolumeResponse, err error)

func (*AlexaClient) LogIn

func (c *AlexaClient) LogIn(relog bool) (err error)

func (*AlexaClient) PostSequenceCmd

func (c *AlexaClient) PostSequenceCmd(command model.AlexaCmd) (err error)

type IAlexaClient

type IAlexaClient interface {
	LogIn(relog bool) (err error)
	PostSequenceCmd(command model.AlexaCmd) (err error)
	GetDevices() (devices model.DevicesResponse, err error)
	GetVolume() (devices model.VolumeResponse, err error)
}

func NewAlexaClient

func NewAlexaClient(baseDomain string, user string, password string, cookieFile string) IAlexaClient

func NewAlexaClientWithHttpClient

func NewAlexaClientWithHttpClient(baseDomain string, user string, password string,
	cookieHelper httpclient.ICookieHelper, client httpclient.IHttpClient) IAlexaClient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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