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) MessageGetstatus(id string) (response MessageProGetstatusResponse, err error) MessageFetch(phone, text string) (response string, err error) OrderCampaign(body *OrderCampaignRequest) (response string, err 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"` }
type NumberData ¶ added in v1.0.1
type OrderCampaignRequest ¶ added in v1.0.1
type OrderCampaignRequest struct { Name string `json:"name"` IsWithText int `json:"isWithText"` // 0 эсвэл 1 /0 үед олон дугаар луу нэг текст илгээнэ, 1 үед нэг текстийг нэг дугаар луу илгээнэ/ Text string `json:"text"` From string `json:"from"` BeginDate string `json:"begin_date"` BeginHour string `json:"begin_hour"` BeginMinute string `json:"begin_minute"` Numbers interface{} `json:"numbers"` }
MessageProFetchRequest struct { From string `json:"from"` To string `json:"to"` Text string `json:"text"` }
Click to show internal directories.
Click to hide internal directories.