Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SendResponse ¶
type SendResponse struct { Body *string `json:"body,omitempty"` NumSegments *string `json:"num_segments,omitempty"` Direction *string `json:"direction,omitempty"` From *string `json:"from,omitempty"` To *string `json:"to,omitempty"` DateUpdated *string `json:"date_updated,omitempty"` Price *string `json:"price,omitempty"` ErrorMessage *string `json:"error_message,omitempty"` URI *string `json:"uri,omitempty"` AccountSID *string `json:"account_sid,omitempty"` NumMedia *string `json:"num_media,omitempty"` Status *string `json:"status,omitempty"` MessagingServiceSID *string `json:"messaging_service_sid,omitempty"` SID *string `json:"sid,omitempty"` DateSent *string `json:"date_sent,omitempty"` DateCreated *string `json:"date_created,omitempty"` ErrorCode *int `json:"error_code,omitempty"` PriceUnit *string `json:"price_unit,omitempty"` APIVersion *string `json:"api_version,omitempty"` SubresourceURIs map[string]interface{} `json:"subresource_uris,omitempty"` }
https://www.twilio.com/docs/messaging/api/message-resource#message-properties
func ParseSendResponse ¶
func ParseSendResponse(jsonData []byte) (*SendResponse, error)
type TwilioClient ¶
type TwilioClient struct { Client *http.Client TwilioCredentials *config.TwilioCredentials }
func NewTwilioClient ¶
func NewTwilioClient(c *config.TwilioCredentials) *TwilioClient
func (*TwilioClient) Send ¶
func (t *TwilioClient) Send(ctx context.Context, options smsapi.SendOptions) error
Click to show internal directories.
Click to hide internal directories.