Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtClient ¶ added in v0.2.0
type AtClient struct {
// contains filtered or unexported fields
}
func New ¶
New returns an instance of an Africa's Talking client reusbale across different products.
func (*AtClient) SendBulkSMS ¶ added in v0.2.0
func (at *AtClient) SendBulkSMS(ctx context.Context, input BulkSMSInput) (BulkSMSResponse, error)
SendBulkSMS makes a POST request to send bulk SMS's the Africa's Talking and returns a response. It uses opinionated defaults.
type BulkSMSInput ¶
BulkSMSInput is passed to SendBulkSMS as a parameter.
type BulkSMSRecipient ¶
type BulkSMSRecipient struct { StatusCode uint `json:"statusCode"` Number string `json:"number"` Status string `json:"status"` Cost string `json:"cost"` MessageID string `json:"messageId"` }
BulkSMSRecipient is returned as part of the BulkSMSResponse.
type BulkSMSResponse ¶
type BulkSMSResponse struct { SMSMessageData struct { Message string `json:"Message"` Recipients []BulkSMSRecipient `json:"Recipients"` } `json:"SMSMessageData"` }
BulkSMSResponse is returned by SendBulkSMS as a response.
Click to show internal directories.
Click to hide internal directories.