xiaomi

package
v1.9.14 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(rawURL string) (core.Producer, error)

func IsLegacy added in v1.9.14

func IsLegacy(model string) bool

Types

type Cloud

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

func NewCloud

func NewCloud(sid string) *Cloud

func (*Cloud) Login

func (c *Cloud) Login(username, password string) error

func (*Cloud) LoginWithCaptcha

func (c *Cloud) LoginWithCaptcha(captcha string) error

func (*Cloud) LoginWithToken

func (c *Cloud) LoginWithToken(userID, passToken string) error

func (*Cloud) LoginWithVerify

func (c *Cloud) LoginWithVerify(ticket string) error

func (*Cloud) Request

func (c *Cloud) Request(baseURL, apiURL, params string, headers map[string]string) ([]byte, error)

func (*Cloud) UserToken

func (c *Cloud) UserToken() (string, string)

type LoginError

type LoginError struct {
	Captcha     []byte `json:"captcha,omitempty"`
	VerifyPhone string `json:"verify_phone,omitempty"`
	VerifyEmail string `json:"verify_email,omitempty"`
}

func (*LoginError) Error

func (l *LoginError) Error() string

type Request

type Request struct {
	Method     string
	URL        string
	RawParams  string
	Body       url.Values
	Headers    url.Values
	RawCookies string
}

func (Request) Encode

func (r Request) Encode() *http.Request

Directories

Path Synopsis
cs2

Jump to

Keyboard shortcuts

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