Documentation ¶
Index ¶
- Variables
- type BinaryContent
- type Client
- type DeliveryDay
- type DeliveryTime
- type DeliveryTimeWindow
- type Destination
- type Error
- type GetSentSMSDeliveryReportsQuery
- type IndiaDLTOptions
- type Language
- type Message
- type Price
- type RegionalOptions
- type SMSAdvancedTextualRequest
- type SMSReport
- type SMSReportResponse
- type SMSResponse
- type SMSResponseDetails
- type Status
- type Tracking
Constants ¶
This section is empty.
Variables ¶
View Source
var DeliveryDayValues = []DeliveryDay{ DD_MONDAY, DD_TUESDAY, DD_WEDNESDAY, DD_THURSDAY, DD_FRIDAY, DD_SATURDAY, DD_SUNDAY, }
Functions ¶
This section is empty.
Types ¶
type BinaryContent ¶
type Client ¶
type Client api.Client
func (*Client) GetSentSMSDeliveryReports ¶
func (client *Client) GetSentSMSDeliveryReports(query GetSentSMSDeliveryReportsQuery) (*SMSReportResponse, error)
func (*Client) SendMultipleTextualSMSAdvanced ¶
func (client *Client) SendMultipleTextualSMSAdvanced(request SMSAdvancedTextualRequest) (*SMSResponse, error)
type DeliveryDay ¶
type DeliveryDay int
const ( DD_MONDAY DeliveryDay = iota DD_TUESDAY DD_WEDNESDAY DD_THURSDAY DD_FRIDAY DD_SATURDAY DD_SUNDAY )
func (DeliveryDay) MarshalJSON ¶
func (val DeliveryDay) MarshalJSON() ([]byte, error)
func (DeliveryDay) String ¶
func (val DeliveryDay) String() string
func (*DeliveryDay) UnmarshalJSON ¶
func (val *DeliveryDay) UnmarshalJSON(data []byte) error
type DeliveryTime ¶
type DeliveryTimeWindow ¶
type DeliveryTimeWindow struct { From *DeliveryTime `json:"from,omitempty"` To *DeliveryTime `json:"to,omitempty"` Days []DeliveryDay `json:"days,omitempty"` }
type Destination ¶
type GetSentSMSDeliveryReportsQuery ¶
func (GetSentSMSDeliveryReportsQuery) Query ¶
func (query GetSentSMSDeliveryReportsQuery) Query() url.Values
type IndiaDLTOptions ¶
type Message ¶
type Message struct { From string `json:"from,omitempty"` To []string `json:"to,omitempty"` Destinations []Destination `json:"destinations,omitempty"` Text string `json:"text,omitempty"` Binary *BinaryContent `json:"binary,omitempty"` Flash bool `json:"flash,omitempty"` Language *Language `json:"language,omitempty"` Transliteration string `json:"transliteration,omitempty"` Notify bool `json:"notify,omitempty"` IntermediateReport bool `json:"intermediateReport,omitempty"` NotifyURL string `json:"notifyUrl,omitempty"` NotifyContentType string `json:"notifyContentType,omitempty"` CallbackData string `json:"callbackData,omitempty"` ValidityPeriod int64 `json:"validityPeriod,omitempty"` SendAt *infobip.Time `json:"sendAt,omitempty"` DeliveryTimeWindow *DeliveryTimeWindow `json:"deliveryTimeWindow,omitempty"` CampaignID string `json:"campaignId,omitempty"` OperatorClientID string `json:"operatorClientId,omitempty"` Regional *RegionalOptions `json:"regional,omitempty"` }
type RegionalOptions ¶
type RegionalOptions struct {
IndiaDLT *IndiaDLTOptions `json:"indiaDlt,omitempty"`
}
type SMSReport ¶
type SMSReport struct { BulkID string `json:"bulkId,omitempty"` MessageID string `json:"messageId,omitempty"` To string `json:"to,omitempty"` From string `json:"from,omitempty"` Text string `json:"text,omitempty"` SentAt *infobip.Time `json:"sentAt,omitempty"` DoneAt *infobip.Time `json:"doneAt,omitempty"` SMSCount int32 `json:"smsCount,omitempty"` MccMnc string `json:"mccMnc,omitempty"` Price *Price `json:"price,omitempty"` Status *Status `json:"status,omitempty"` Error *Error `json:"error,omitempty"` CallbackData string `json:"callbackData,omitempty"` }
type SMSReportResponse ¶
type SMSReportResponse struct {
Results []SMSReport `json:"results,omitempty"`
}
type SMSResponse ¶
type SMSResponse struct { BulkID string `json:"bulkId,omitempty"` TrackingProcessKey string `json:"trackingProcessKey,omitempty"` Messages []SMSResponseDetails `json:"messages,omitempty"` }
type SMSResponseDetails ¶
Click to show internal directories.
Click to hide internal directories.