Versions in this module Expand all Collapse all v1 v1.0.1 Nov 10, 2026 Changes in this version + const DefaultBaseURL + const Version + func VerifyWebhook(rawBody []byte, signature, secret string) bool + type BulkMessage struct + Message string + Recipients []string + type Client struct + APIKey string + BaseURL string + HTTPClient *http.Client + func New(apiKey string) *Client + func (c *Client) CancelMessage(ctx context.Context, id int64) error + func (c *Client) CreateWebhook(ctx context.Context, webhookURL string, events []string, deviceID int64) (map[string]interface{}, error) + func (c *Client) DeleteWebhook(ctx context.Context, id int64) error + func (c *Client) GetAccount(ctx context.Context) (map[string]interface{}, error) + func (c *Client) GetBatch(ctx context.Context, id int64) (map[string]interface{}, error) + func (c *Client) GetDevice(ctx context.Context, id int64) (map[string]interface{}, error) + func (c *Client) GetMessage(ctx context.Context, id int64) (map[string]interface{}, error) + func (c *Client) ListDevices(ctx context.Context) ([]map[string]interface{}, error) + func (c *Client) ListMessages(ctx context.Context, filters url.Values) (interface{}, error) + func (c *Client) ListReceivedSMS(ctx context.Context, deviceID int64, filters url.Values) (interface{}, error) + func (c *Client) ListWebhooks(ctx context.Context) ([]map[string]interface{}, error) + func (c *Client) Request(ctx context.Context, method, path string, body, out interface{}) error + func (c *Client) SendBulkSMS(ctx context.Context, deviceID int64, messageTemplate string, ...) (map[string]interface{}, error) + func (c *Client) SendSMS(ctx context.Context, p SendParams) (*SendResult, error) + type Error struct + Body []byte + Errors map[string][]string + Message string + RetryAfter time.Duration + Status int + func (e *Error) Error() string + type SendParams struct + DeviceID int64 + Message string + ScheduleAt *time.Time + SimSlot *int + To []string + type SendResult struct + BatchID *int64 + MessageIDs []int64 + Status string