Documentation
¶
Index ¶
Constants ¶
View Source
const ( MoviderAPIURL = "https://api.movider.co/v1" MaxPhoneLength = 15 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
APIURL string
Creds Credentials
AllowedRecipients []string
}
type Credentials ¶
type Error ¶
type SendMessageRequest ¶
type SendMessageRequest struct {
Credentials
To []string `json:"to"`
Text string `json:"text"`
}
func (*SendMessageRequest) Encode ¶
func (smr *SendMessageRequest) Encode() []byte
func (*SendMessageRequest) Validate ¶
func (smr *SendMessageRequest) Validate() error
type SendMessageResponse ¶
Click to show internal directories.
Click to hide internal directories.