Documentation
¶
Index ¶
- Constants
- func Crypt(key, plaintext []byte) ([]byte, error)
- func GenNonce() []byte
- func GenSignature64(method, path string, values url.Values, signedNonce []byte) string
- func GenSignedNonce(ssecurity, nonce []byte) []byte
- type Client
- func (c *Client) GetAllWeights() ([]*core.Weight, error)
- func (c *Client) GetFamilyMembers() (map[int64]string, error)
- func (c *Client) GetFilterWeights(filter string) ([]*core.Weight, error)
- func (c *Client) Login(username, password string) error
- func (c *Client) LoginWithToken(token string) error
- func (c *Client) OAuth2(params, username, password string) (string, error)
- func (c *Client) Request(baseURL, apiURL, params string) ([]byte, error)
- func (c *Client) Token() string
Constants ¶
View Source
const ( AppXiaomiHome = "xiaomiio" AppMiFitness = "miothealth" )
Variables ¶
This section is empty.
Functions ¶
func GenSignature64 ¶
func GenSignedNonce ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetFilterWeights ¶ added in v0.2.0
GetFilterWeights filter can be region or scale model
func (*Client) LoginWithToken ¶
Click to show internal directories.
Click to hide internal directories.