Versions in this module Expand all Collapse all v0 v0.2.0 Jan 8, 2021 v0.1.0 Jan 8, 2021 Changes in this version + type BalanceResult struct + Balance int + Status int + type Client struct + func New(username, domain, password string, timeout time.Duration) (*Client, error) + func (c *Client) GetBalance() (int, error) + func (c *Client) GetMessages(count int) ([]Message, error) + func (c *Client) GetMid(uid int) (int64, error) + func (c *Client) GetStatuses(mids []int64) ([]DeliveryStatus, error) + func (c *Client) Send(request SendRequest) ([]SendResponse, error) + func (c *Client) SetBaseUrl(url string) + type CustomTime struct + func (ct *CustomTime) UnmarshalJSON(b []byte) (err error) + type DeliveryStatus struct + Date CustomTime + Mid int64 + Status int + StatusText string + type Message struct + Body string + Date CustomTime + RecipientNumber string + SenderNumber string + type MessagesResult struct + Messages []Message + Status int + type MidResult struct + Mid int64 + Status int + type SendRequest struct + Encodings []int + Messages []string + Recipients []string + Senders []string + Udhs []string + Uids []int64 + type SendResponse struct + Alphabet string + Id int64 + Parts int + Recipient string + Status int + StatusText string + Tariff float64 + UserId int64 + type SendResult struct + Messages []SendResponse + Status int + type StatusesResult struct + Dlrs []DeliveryStatus + Status int