Versions in this module Expand all Collapse all v1 v1.0.1 Sep 30, 2016 Changes in this version + const Binary + const BinaryMessage + const Text + const TextMessage + const Unicode + const UnicodeMessage + const VCal + const VCard + const WAPPush + func IsTrustedIP(ipStr string) bool + func NewDeliveryHandler(out chan *DeliveryReceipt, verifyIPs bool) http.HandlerFunc + func NewMessageHandler(out chan *RecvdMessage, verifyIPs bool) http.HandlerFunc + type Account struct + func (nexmo *Account) GetBalance() (float64, error) + type Checks struct + Code string + DateReceived string + IPAddress string + Status string + type Client struct + Account *Account + HttpClient *http.Client + SMS *SMS + USSD *USSD + Verify *Verification + func NewClientFromAPI(apiKey, apiSecret string) (*Client, error) + type DeliveryReceipt struct + ClientReference string + ErrorCode string + MSISDN string + MessageID string + NetworkCode string + Price string + SCTS time.Time + Status string + Timestamp time.Time + To string + type MessageClass int + const Flash + const Forward + const SIMData + const Standard + func (m MessageClass) String() string + type MessageReport struct + ClientReference string + ErrorText string + MessageID string + MessagePrice string + Network string + RemainingBalance string + Status ResponseCode + To string + type MessageResponse struct + MessageCount int + Messages []MessageReport + type MessageType int + func (m MessageType) String() string + type RecvdMessage struct + Concat struct{ ... } + Concatenated bool + Data []byte + ID string + Keyword string + MSISDN string + NetworkCode string + Text string + Timestamp time.Time + To string + Type MessageType + UDH []byte + type ResponseCode int + const ResponseCommunicationFailed + const ResponseFacilityNotAllowed + const ResponseInternalError + const ResponseInvalidCredentials + const ResponseInvalidMessage + const ResponseInvalidMessageClass + const ResponseInvalidParams + const ResponseInvalidSenderAddress + const ResponseInvalidSignature + const ResponseInvalidTTL + const ResponseMessageTooLong + const ResponseMissingParams + const ResponseNumberBarred + const ResponsePartnerAcctBarred + const ResponsePartnerQuotaExceeded + const ResponseRESTNotEnabled + const ResponseSuccess + const ResponseThrottled + func (c ResponseCode) String() string + type SMS struct + func (c *SMS) Send(msg *SMSMessage) (*MessageResponse, error) + type SMSMessage struct + Body []byte + Class MessageClass + ClientReference string + From string + NetworkCode string + StatusReportRequired int + TTL int + Text string + Title string + To string + Type string + UDH []byte + URL string + VCal string + VCard string + Validity int + func (m *SMSMessage) MarshalJSON() ([]byte, error) + type USSD struct + func (c *USSD) Send(msg *USSDMessage) (*MessageResponse, error) + type USSDMessage struct + ClientReference string + From string + NetworkCode string + Prompt bool + StatusReportRequired bool + Text string + To string + type Verification struct + func (c *Verification) Check(m *VerifyCheckRequest) (*VerifyCheckResponse, error) + func (c *Verification) Search(m *VerifySearchRequest) (*VerifySearchResponse, error) + func (c *Verification) Send(m *VerifyMessageRequest) (*VerifyMessageResponse, error) + type VerifyCheckRequest struct + Code string + IPAddress string + RequestID string + func (m *VerifyCheckRequest) MarshalJSON() ([]byte, error) + type VerifyCheckResponse struct + Currency string + ErrorText string + EventID string + Price string + Status ResponseCode + type VerifyMessageRequest struct + Brand string + CodeLength int + Country string + Language string + NextEventWait int + Number string + PINExpiry int + SenderID string + func (m *VerifyMessageRequest) MarshalJSON() ([]byte, error) + type VerifyMessageResponse struct + ErrorText string + RequestID string + Status ResponseCode + type VerifySearchRequest struct + RequestID string + func (m *VerifySearchRequest) MarshalJSON() ([]byte, error) + type VerifySearchResponse struct + AccountID string + Checks []Checks + Currency string + DateFinalized string + DateSubmitted string + ErrorText string + FirstEventDate string + LastEventDate string + Number string + Price string + RequestID string + SenderID string + Status string Incompatible versions in this module v2.0.0+incompatible Feb 2, 2018