Versions in this module Expand all Collapse all v0 v0.13.2 Nov 30, 2021 Changes in this version + func GetUserAgent() string + func GetVersion() string + type APITransport struct + APISecret string + Transport http.RoundTripper + func (t *APITransport) Client() *http.Client + func (t *APITransport) RoundTrip(req *http.Request) (*http.Response, error) + type ApplicationCapabilities struct + Messages *ApplicationMessages + Rtc *ApplicationRtc + Vbc *ApplicationVbc + Voice *ApplicationVoice + type ApplicationClient struct + Config *application.Configuration + func NewApplicationClient(Auth Auth) *ApplicationClient + func (client *ApplicationClient) CreateApplication(name string, opts CreateApplicationOpts) (ApplicationResponse, ApplicationErrorResponse, error) + func (client *ApplicationClient) DeleteApplication(app_id string) (bool, ApplicationErrorResponse, error) + func (client *ApplicationClient) GetApplication(app_id string) (ApplicationResponse, ApplicationErrorResponse, error) + func (client *ApplicationClient) GetApplications(opts GetApplicationsOpts) (ApplicationResponseCollection, ApplicationErrorResponse, error) + func (client *ApplicationClient) UpdateApplication(id string, name string, opts UpdateApplicationOpts) (ApplicationResponse, ApplicationErrorResponse, error) + type ApplicationErrorResponse struct + Detail string + Instance string + Title string + Type string + type ApplicationKeys struct + PublicKey string + type ApplicationMessages struct + Webhooks ApplicationMessagesWebhooks + type ApplicationMessagesWebhooks struct + InboundUrl ApplicationUrl + StatusUrl ApplicationUrl + type ApplicationResponse struct + Capabilities application.ApplicationResponseCapabilities + Id string + Keys application.ApplicationResponseKeys + Name string + type ApplicationResponseCollection struct + Embedded ApplicationResponseCollectionEmbedded + Page int32 + PageSize int32 + TotalItems int32 + TotalPages int32 + type ApplicationResponseCollectionEmbedded struct + Applications []ApplicationResponse + type ApplicationRtc struct + Webhooks ApplicationRtcWebhooks + type ApplicationRtcWebhooks struct + EventUrl ApplicationUrl + type ApplicationUrl struct + Address string + HttpMethod string + type ApplicationVbc struct + type ApplicationVoice struct + Webhooks ApplicationVoiceWebhooks + type ApplicationVoiceWebhooks struct + AnswerUrl ApplicationUrl + EventUrl ApplicationUrl + FallbackAnswerUrl ApplicationUrl + type Auth interface + GetCreds func() []string + type CallFrom struct + Number string + Type string + type CallTo struct + DtmfAnswer string + Number string + Type string + type CreateApplicationOpts struct + Capabilities ApplicationCapabilities + Keys ApplicationKeys + type CreateApplicationRequestOpts struct + Capabilities ApplicationCapabilities + Keys *ApplicationKeys + Name string + type CreateCallOpts struct + AnswerMethod string + AnswerUrl []string + EventMethod string + EventUrl []string + From CallFrom + LengthTimer int32 + MachineDetection string + Ncco ncco.Ncco + RingingTimer int32 + To CallTo + type GetApplicationsOpts struct + Page int32 + PageSize int32 + type JWTAuth struct + JWT string + func CreateAuthFromAppPrivateKey(appID string, privateKey []byte) (*JWTAuth, error) + func CreateAuthFromJwtTokenGenerator(generator jwt.Generator) *JWTAuth + func (auth *JWTAuth) GetCreds() []string + type KeySecretAuth struct + func CreateAuthFromKeySecret(apiKey string, apiSecret string) *KeySecretAuth + func (auth *KeySecretAuth) GetCreds() []string + type ModifyCallOpts struct + Action string + type ModifyCallResponse struct + Status string + type NiErrorResponse struct + Status int32 + StatusMessage string + type NiOpts struct + Country string + type NiResponseAsync struct + Number string + RemainingBalance string + RequestId string + RequestPrice string + Status numberinsight.NiStandardAdvancedStatus + StatusMessage string + type NiResponseJsonBasic struct + CountryCode string + CountryCodeIso3 string + CountryName string + CountryPrefix string + InternationalFormatNumber string + NationalFormatNumber string + RequestId string + Status numberinsight.NiBasicStatus + StatusMessage string + type NiResponseJsonStandard struct + CallerIdentity numberinsight.NiCallerIdentity + CallerName string + CallerType string + CountryCode string + CountryCodeIso3 string + CountryName string + CountryPrefix string + CurrentCarrier numberinsight.NiCurrentCarrierProperties + FirstName string + InternationalFormatNumber string + LastName string + NationalFormatNumber string + OriginalCarrier numberinsight.NiInitialCarrierProperties + Ported string + RefundPrice string + RemainingBalance string + RequestId string + RequestPrice string + Roaming numberinsight.NiRoaming + Status numberinsight.NiBasicStatus + StatusMessage string + type NumberAvailable struct + Cost string + Country string + Features []string + Msisdn string + Type string + type NumberBuyOpts struct + TargetAPIKey string + type NumberCancelOpts struct + TargetAPIKey string + type NumberCollection struct + Count int32 + Numbers []NumberDetail + type NumberDetail struct + Country string + Features []string + MessagesCallbackType string + MessagesCallbackValue string + MoHttpUrl string + Msisdn string + Type string + VoiceCallbackType string + VoiceCallbackValue string + type NumberInsightClient struct + Config *numberinsight.Configuration + func NewNumberInsightClient(Auth Auth) *NumberInsightClient + func (client *NumberInsightClient) AdvancedAsync(number string, callback string, opts NiOpts) (NiResponseAsync, NiErrorResponse, error) + func (client *NumberInsightClient) Basic(number string, opts NiOpts) (NiResponseJsonBasic, NiErrorResponse, error) + func (client *NumberInsightClient) Standard(number string, opts NiOpts) (NiResponseJsonStandard, NiErrorResponse, error) + type NumberSearch struct + Count int32 + Numbers []NumberAvailable + type NumberSearchOpts struct + Features string + Index int32 + Pattern string + SearchPattern int32 + Size int32 + Type string + type NumberUpdateOpts struct + AppID string + MessagesCallbackType string + MessagesCallbackValue string + MoHTTPURL string + VoiceCallbackType string + VoiceCallbackValue string + VoiceStatusCallback string + type NumbersClient struct + Config *number.Configuration + func NewNumbersClient(Auth Auth) *NumbersClient + func (client *NumbersClient) Buy(country string, msisdn string, opts NumberBuyOpts) (NumbersResponse, NumbersErrorResponse, error) + func (client *NumbersClient) Cancel(country string, msisdn string, opts NumberCancelOpts) (NumbersResponse, NumbersErrorResponse, error) + func (client *NumbersClient) List(opts NumbersOpts) (NumberCollection, NumbersErrorResponse, error) + func (client *NumbersClient) Search(country string, opts NumberSearchOpts) (NumberSearch, NumbersErrorResponse, error) + func (client *NumbersClient) Update(country string, msisdn string, opts NumberUpdateOpts) (NumbersResponse, NumbersErrorResponse, error) + type NumbersErrorResponse struct + ErrorCode string + ErrorCodeLabel string + type NumbersOpts struct + ApplicationID string + Country string + HasApplication string + Index int32 + Pattern string + SearchPattern int32 + Size int32 + type NumbersResponse struct + ErrorCode string + ErrorCodeLabel string + type PlayAudioOpts struct + Level int + Loop string + type PlayTtsOpts struct + Level string + Loop int32 + Text string + VoiceName string + type SMSClient struct + Config *sms.Configuration + func NewSMSClient(Auth Auth) *SMSClient + func (client *SMSClient) Send(from string, to string, text string, opts SMSOpts) (Sms, SmsErrorResponse, error) + type SMSOpts struct + Callback string + ClientRef string + StatusReportReq bool + Type string + type Sms struct + MessageCount string + Messages []sms.Message + type SmsError struct + ErrorText string + Status string + type SmsErrorResponse struct + MessageCount string + Messages []SmsError + type TransferCallOpts struct + AnswerUrl []string + Ncco ncco.Ncco + Uuid string + type TransferDestinationNcco struct + Ncco ncco.Ncco + Type string + type TransferDestinationUrl struct + Type string + Url []string + type TransferWithNccoOpts struct + Action string + Destination TransferDestinationNcco + type TransferWithUrlOpts struct + Action string + Destination TransferDestinationUrl + type UpdateApplicationOpts struct + Capabilities ApplicationCapabilities + Keys ApplicationKeys + type UpdateApplicationRequestOpts struct + Capabilities ApplicationCapabilities + Keys *ApplicationKeys + Name string + type VerifyCheckResponse struct + Currency string + EstimatedPriceMessagesSent string + EventId string + Price string + RequestId string + Status string + type VerifyClient struct + Config *verify.Configuration + func NewVerifyClient(Auth Auth) *VerifyClient + func (client *VerifyClient) Cancel(requestID string) (VerifyControlResponse, VerifyErrorResponse, error) + func (client *VerifyClient) Check(requestID string, code string) (VerifyCheckResponse, VerifyErrorResponse, error) + func (client *VerifyClient) Psd2(number string, payee string, amount float64, opts VerifyPsd2Opts) (VerifyRequestResponse, VerifyErrorResponse, error) + func (client *VerifyClient) Request(number string, brand string, opts VerifyOpts) (VerifyRequestResponse, VerifyErrorResponse, error) + func (client *VerifyClient) Search(requestID string) (VerifySearchResponse, VerifyErrorResponse, error) + func (client *VerifyClient) TriggerNextEvent(requestID string) (VerifyControlResponse, VerifyErrorResponse, error) + type VerifyControlResponse struct + Command string + Status string + type VerifyErrorResponse struct + ErrorText string + RequestId string + Status string + type VerifyOpts struct + CodeLength int32 + Country string + Lg string + NextEventWait int32 + PinExpiry int32 + SenderID string + WorkflowID int32 + type VerifyPsd2Opts struct + CodeLength int32 + Country string + Lg string + NextEventWait int32 + PinExpiry int32 + WorkflowID int32 + type VerifyRequestResponse struct + RequestId string + Status string + type VerifySearchResponse struct + AccountId string + Checks []verify.SearchResponseChecks + Currency string + DateFinalized string + DateSubmitted string + EstimatedPriceMessagesSent string + Events []verify.SearchResponseEvents + FirstEventDate string + LastEventDate string + Number string + Price string + RequestId string + SenderId string + Status string + type VoiceClient struct + Config *voice.Configuration + JWT string + func NewVoiceClient(Auth Auth) *VoiceClient + func (client *VoiceClient) CreateCall(opts CreateCallOpts) (voice.CreateCallResponse, VoiceErrorResponse, error) + func (client *VoiceClient) Earmuff(uuid string) (ModifyCallResponse, VoiceErrorResponse, error) + func (client *VoiceClient) GetCall(uuid string) (voice.GetCallResponse, VoiceErrorResponse, error) + func (client *VoiceClient) GetCalls() (voice.GetCallsResponse, VoiceErrorResponse, error) + func (client *VoiceClient) Hangup(uuid string) (ModifyCallResponse, VoiceErrorResponse, error) + func (client *VoiceClient) Mute(uuid string) (ModifyCallResponse, VoiceErrorResponse, error) + func (client *VoiceClient) PlayAudioStream(uuid string, streamUrl string, opts PlayAudioOpts) (voice.StartStreamResponse, VoiceErrorResponse, error) + func (client *VoiceClient) PlayDtmf(uuid string, dtmf string) (voice.DtmfResponse, VoiceErrorResponse, error) + func (client *VoiceClient) PlayTts(uuid string, text string, opts PlayTtsOpts) (voice.StartTalkResponse, VoiceErrorResponse, error) + func (client *VoiceClient) StopAudioStream(uuid string) (voice.StopStreamResponse, VoiceErrorResponse, error) + func (client *VoiceClient) StopTts(uuid string) (voice.StopTalkResponse, VoiceErrorResponse, error) + func (client *VoiceClient) TransferCall(opts TransferCallOpts) (ModifyCallResponse, VoiceErrorResponse, error) + func (client *VoiceClient) Unearmuff(uuid string) (ModifyCallResponse, VoiceErrorResponse, error) + func (client *VoiceClient) Unmute(uuid string) (ModifyCallResponse, VoiceErrorResponse, error) + type VoiceErrorGeneralResponse struct + Title string + Type string + type VoiceErrorInvalidParamsResponse struct + Detail string + Instance string + InvalidParameters []map[string]string + Title string + Type int + type VoiceErrorResponse struct + Error interface{}