Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessagePro ¶
type MessagePro interface {
MessageSend(phone, text string) (MessageProSendResponse, error)
}
func New ¶
func New(apiKey, specialPhoneNumber, endpoint string) MessagePro
type MessageProGetstatusResponse ¶
type MessageProGetstatusResponse struct { Delivered string `json:"delivered"` Result string `json:"result"` SourceNumber string `json:"source_number"` DestinationNumber string `json:"destination_number"` Text string `json:"text"` }
MessageProGetstatusRequest struct { Key string `json:"key"` ID string `json:"id"` }
type MessageProSendResponse ¶
type MessageProSendResponse struct { Result string `json:"Result"` MessageID int `json:"Message ID"` Reason string `json:"Reason,omitempty"` }
MessageProSendRequest struct { Key string `json:"key"` From string `json:"from"` To string `json:"to"` Text string `json:"text"` }
Click to show internal directories.
Click to hide internal directories.