Versions in this module Expand all Collapse all v0 v0.0.12 Nov 1, 2019 Changes in this version + const DateFormat + const DevAPIAddress + const HTTPContentType + const HTTPMethod + const ProdAPIAddress + func Callback(h smshandler.HTTPHandler, path string, mux *http.ServeMux, ...) + type Bool bool + func (b *Bool) Scan(src interface{}) error + func (b *Bool) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (b Bool) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (b Bool) String() string + func (b Bool) Value() (driver.Value, error) + type DLRPush struct + Date time.Time + EnMessage string + ExternalID string + HeMessage string + Operator string + Phone string + ShipmentID string + Status Status + func URLToDLRPush(values url.Values) *DLRPush + type DLRStatus int + const DLRStatusArrived + const DLRStatusArrivedDestination + const DLRStatusBlockedOnRequest + const DLRStatusCellularFailed1 + const DLRStatusCellularFailed2 + const DLRStatusDeleted + const DLRStatusDeliveryTimePermission + const DLRStatusExpired + const DLRStatusFailed1 + const DLRStatusFailed2 + const DLRStatusFailed3 + const DLRStatusFailed4 + const DLRStatusKosherNumber + const DLRStatusNotArrived1 + const DLRStatusNotArrived2 + const DLRStatusNotArrived3 + const DLRStatusNotArrived4 + const DLRStatusNotArrived5 + const DLRStatusPermissionDenied + const DLRStatusRejected + const DLRStatusTimeout + const DLRStatusUnknownCause + func (dlr *DLRStatus) Scan(src interface{}) error + func (dlr *DLRStatus) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (dlr DLRStatus) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (dlr DLRStatus) String() string + func (dlr DLRStatus) Value() (driver.Value, error) + type DestinationXML struct + ClID []string + Phone []Phone + XMLName xml.Name + type HTTPHandler struct + Client *http.Client + func (h HTTPHandler) DoHTTP(method, contentType, address string, fields url.Values, body []byte) (resp *http.Response, err error) + func (h HTTPHandler) OnGettingSMS(path string, mux *http.ServeMux, httpHandler http.HandlerFunc) + type MessagesBulkXML struct + Response Bool + SMS []SMSBulkXML + Timing string + XMLName xml.Name + type Phone struct + ID string + Phone string + type SMSBulkXML struct + Destination DestinationXML + Message string + Source string + XMLName xml.Name + type SMSError struct + Message string + ShipmentID string + Status Status + func (e SMSError) Error() string + type Status int + const ErrorAmountIsTooHighForCurrentCredit + const ErrorCampaignAlreadySent + const ErrorCamppaignAlreadyCanceled + const ErrorCantUseMultipleContactLists + const ErrorContactListNotExist + const ErrorContactSupport + const ErrorIncorrectUserNameOrPassword + const ErrorInvalidCommand + const ErrorInvalidGivenCampaign + const ErrorInvalidMessageLength + const ErrorInvalidNameLength + const ErrorInvalidPasswordLength + const ErrorInvalidPhone + const ErrorInvalidSourceLength + const ErrorInvalidUsernameLength + const ErrorMissingRequiredXMLField + const ErrorNoPermissionForSMS + const ErrorNonIntegerValuesForAmount + const ErrorNotEnoughCredit + const ErrorOK + const ErrorSomeNumbersNotBlacklisted + const ErrorUnknownErrorInRequest + const ErrorUsernameAlreadyExists + const ErrorXMLParsing + func StrToStatus(str string) Status + func (s *Status) Scan(src interface{}) error + func (s *Status) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (s Status) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (s Status) String() string + func (s Status) Value() (driver.Value, error) + type TelzarBulkXML struct + Messages MessagesBulkXML + User UserAuth + XMLName xml.Name + type TelzarXML struct + AddDynamic Bool + AddUnsubscribe Unsubscribe + Destinations DestinationXML + Message string + Response Bool + Source string + Tag string + Timing string + User UserAuth + XMLName xml.Name + func (x TelzarXML) SendSMS(h HTTPHandler) (*http.Response, error) + type Unsubscribe uint8 + const UnsubscribeByLink + const UnsubscribeByReturnSMS + const UnsubscribeOff + func (u *Unsubscribe) Scan(src interface{}) error + func (u *Unsubscribe) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (u Unsubscribe) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (u Unsubscribe) String() string + func (u Unsubscribe) Value() (driver.Value, error) + type UserAuth struct + Password string + Username string + XMLName xml.Name + type XMLResponse struct + AddUnsubscribe Unsubscribe + Message string + ShipmentID string + Status Status + XMLName xml.Name + func (r *XMLResponse) FromResponse(buf []byte) error + func (r XMLResponse) IsOK() bool + func (r XMLResponse) ToError() error