Versions in this module Expand all Collapse all v1 v1.0.0 Sep 28, 2022 Changes in this version + type Client struct + APIToken string + AppToken string + AppTokenExpiry int64 + BaseURL *url.URL + Devices []string + PackageName string + UserName string + func NewClient(httpClient *http.Client, packageName, token, appToken string) *Client + func (c *Client) GetDevices() error + func (c *Client) Login(username, password string) error + func (c *Client) RefreshToken() error + func (c *Client) SendImage(contentFile string, devices []string, silent bool) error + func (c *Client) SendNotification(content, contentURL string, devices []string, silent bool) error + func (c *Client) SendText(content string, devices []string, silent bool) error + func (c *Client) SendURL(contentURL string, devices []string, silent bool) error + type Device struct + ID string + Image string + Model string + Title string + type User struct + AppToken string + Avatar string + ExpiresAt int64 + UserName string