Versions in this module Expand all Collapse all v0 v0.12.0-alpha.1 Jun 26, 2020 v0.8.1 Feb 4, 2020 Changes in this version type StartVerificationRequest + WorkflowID int8 v0.8.0 Jan 2, 2020 Changes in this version + const CallerTypeBusiness + const CallerTypeConsumer + const CallerTypeUnknown + const IPMatchLevelCountry + const IPMatchLevelMismatch + const IPWarningsNoWarning + const IPWarningsUnknown + const LookupOutcomeFailed + const LookupOutcomePartial + const LookupOutcomeSuccess + const PortedStatusAssumedNotPorted + const PortedStatusAssumedPorted + const PortedStatusNotPorted + const PortedStatusPorted + const PortedStatusUnknown + const ReachableStatusAbsent + const ReachableStatusBadNumber + const ReachableStatusBlacklisted + const ReachableStatusReachable + const ReachableStatusUndeliverable + const ReachableStatusUnknown + const RoamingStatusNotRoaming + const RoamingStatusRoaming + const RoamingStatusUnknown + const ValidNumberStatusNotValid + const ValidNumberStatusUnknown + const ValidNumberStatusValid + type APIError struct + ErrorMessage string + Status int64 + func (a APIError) Error() string + type AdvancedInsightRequest struct + CNAM bool + Country string + IP string + Number string + type AdvancedInsightResponse struct + IP string + IPCountry string + IPMatchLevel IPMatchLevel + IPWarnings IPWarnings + LookupOutcome LookupOutcome + LookupOutcomeMessage string + Ported string + Reachable ReachableStatus + Roaming struct{ ... } + ValidNumber ValidNumberStatus + type ApplicationConfiguration struct + ID string + Keys struct{ ... } + Links Links + Name string + Voice struct{ ... } + type ApplicationService struct + func (c *ApplicationService) SetBaseURL(baseURL string) + func (s *ApplicationService) CreateApplication(request CreateApplicationRequest) (*CreateApplicationResponse, *http.Response, error) + func (s *ApplicationService) DeleteApplication(id string) (*http.Response, error) + func (s *ApplicationService) GetApplication(id string) (*GetApplicationResponse, *http.Response, error) + func (s *ApplicationService) ListApplications(request ListApplicationsRequest) (*ListApplicationsResponse, *http.Response, error) + func (s *ApplicationService) ModifyApplication(id string, request ModifyApplicationRequest) (*ModifyApplicationResponse, *http.Response, error) + type AuthSet struct + func NewAuthSet() *AuthSet + func (a *AuthSet) ApplyAPICredentials(request apiSecretRequest) + func (a *AuthSet) ApplyJWT(sling *sling.Sling) error + func (a *AuthSet) GenerateToken() (string, error) + func (a *AuthSet) SetAPISecret(apiKey, apiSecret string) + func (a *AuthSet) SetApplicationAuth(appID string, key []byte) error + type AuthType uint8 + const ApiSecretAuth + const ApiSecretPathAuth + const JwtAuth + type BasicInsightRequest struct + Country string + Number string + type BasicInsightResponse struct + CountryCode string + CountryCodeIso3 string + CountryName string + CountryPrefix string + ErrorText string + InternationalFormatNumber string + NationalFormatNumber string + RequestID string + Status int64 + StatusMessage string + type CallErrorResponse struct + ErrorTitle string + Type string + func (c *CallErrorResponse) Error() string + type CallInfo struct + ConversationUUID string + Direction string + Duration string + EndTime string + From interface{} + Network string + Price string + Rate string + StartTime string + Status string + To interface{} + UUID string + type CallService struct + func (c *CallService) CreateCall(request CreateCallRequest) (*CreateCallResponse, *http.Response, error) + func (c *CallService) GetCallInfo(uuid string) (*CallInfo, *http.Response, error) + func (c *CallService) ModifyCall(uuid string, request interface{}) (*ModifyCallResponse, *http.Response, error) + func (c *CallService) SearchCalls(request SearchCallsRequest) (*SearchCallsResponse, *http.Response, error) + func (c *CallService) SendDTMF(uuid string, request DTMFRequest) (*ModifyCallResponse, *http.Response, error) + func (c *CallService) SetBaseURL(baseURL string) + func (c *CallService) StopStream(uuid string) (*ModifyCallResponse, *http.Response, error) + func (c *CallService) StopTalk(uuid string) (*ModifyCallResponse, *http.Response, error) + func (c *CallService) Stream(uuid string, request StreamRequest) (*ModifyCallResponse, *http.Response, error) + func (c *CallService) Talk(uuid string, request TalkRequest) (*ModifyCallResponse, *http.Response, error) + type CallerType string + type CarrierRecord struct + Country string + Name string + NetworkCode string + NetworkType NetworkType + type CheckVerificationRequest struct + Code string + IPAddress string + RequestID string + type CheckVerificationResponse struct + Currency string + ErrorText string + Price string + RequestID string + Status string + type Client struct + Application *ApplicationService + Call *CallService + Developer *DeveloperService + Insight *InsightService + SMS *SMSService + Verify *VerifyService + func New(httpClient *http.Client, authSet *AuthSet) *Client + func NewClient(httpClient *http.Client, authSet *AuthSet) *Client + type ControlVerificationRequest struct + Command string + RequestID string + type ControlVerificationResponse struct + Command string + ErrorText string + Status string + type CountryPrices struct + Country string + MT string + Name string + Networks []NetworkPrice + Prefix string + type CreateApplicationRequest struct + AnswerMethod string + AnswerURL string + EventMethod string + EventURL string + Name string + Type string + type CreateApplicationResponse ApplicationConfiguration + type CreateCallRequest struct + AnswerMethod string + AnswerURL []string + EventMethod string + EventURL []string + From interface{} + LengthTimer int64 + MachineDetection string + RingingTimer int64 + To []interface{} + type CreateCallResponse struct + ConversationUUID string + Direction string + Status string + UUID string + type Credentials struct + APIKey string + APISecret string + type DTMFRequest struct + Digits string + type DeveloperService struct + func (c *DeveloperService) SetBaseURL(baseURL string) + func (s *DeveloperService) GetBalance() (*GetBalanceResponse, *http.Response, error) + func (s *DeveloperService) GetOutboundPricingForCountry(request GetOutboundPricingForCountryRequest) (*CountryPrices, *http.Response, error) + func (s *DeveloperService) GetOutboundProductPricing(request GetOutboundProductPricingRequest) (*GetOutboundProductPricingResponse, *http.Response, error) + func (s *DeveloperService) GetPhoneOutboundPricing(request GetPhoneOutboundPricingRequest) (*GetPhoneOutboundPricingResponse, *http.Response, error) + func (s *DeveloperService) GetPrefixOutboundPricing(request GetPrefixOutboundPricingRequest) (*GetPrefixOutboundPricingResponse, *http.Response, error) + type EmbeddedCalls struct + Calls []CallInfo + type GetApplicationRequest struct + type GetApplicationResponse ApplicationConfiguration + type GetBalanceResponse struct + Value float64 + type GetOutboundPricingForCountryRequest struct + Country string + type GetOutboundProductPricingRequest struct + Country string + Product string + type GetOutboundProductPricingResponse struct + CountryCode string + CountryDisplayName string + CountryName string + Currency string + DefaultPrice string + DialingPrefix string + Networks []NetworkDetails + type GetPhoneOutboundPricingRequest struct + Phone string + Product string + type GetPhoneOutboundPricingResponse struct + CountryCode string + Network string + Phone string + Price string + type GetPrefixOutboundPricingRequest struct + Prefix string + type GetPrefixOutboundPricingResponse struct + Count int64 + Prices []CountryPrices + type IPMatchLevel string + type IPWarnings string + type InsightService struct + func (c *InsightService) GetAdvancedInsight(request AdvancedInsightRequest) (AdvancedInsightResponse, *http.Response, error) + func (c *InsightService) GetBasicInsight(request BasicInsightRequest) (BasicInsightResponse, *http.Response, error) + func (c *InsightService) GetStandardInsight(request StandardInsightRequest) (StandardInsightResponse, *http.Response, error) + func (c *InsightService) SetBaseURL(baseURL string) + type Link struct + Href string + type Links struct + First Link + Last Link + Next Link + Prev Link + Self Link + type ListApplicationsRequest struct + PageIndex int64 + PageSize int64 + type ListApplicationsResponse struct + Count int64 + Embedded struct{ ... } + Links Links + PageSize int64 + type LookupOutcome int8 + type MessageType string + const MessageTypeBinary + const MessageTypeText + const MessageTypeUnicode + const MessageTypeWAPPush + type ModifyApplicationRequest CreateApplicationRequest + type ModifyApplicationResponse ApplicationConfiguration + type ModifyCallResponse struct + Message string + UUID string + type NetworkDetails struct + Currency string + MCC string + MNC string + NetworkCode string + NetworkName string + Price string + Ranges []int64 + Type string + type NetworkPrice struct + Code string + MTPrice string + Network string + type NetworkType string + const NetworkTypeLandline + const NetworkTypeLandlinePremium + const NetworkTypeLandlineTollFree + const NetworkTypeMobile + const NetworkTypePager + const NetworkTypeUnknown + const NetworkTypeVirtual + type PhoneCallEndpoint struct + Dtmfanswer string + Number string + Type string + type PortedStatus string + type RandomProvider interface + Int31 func() int32 + type ReachableStatus string + type RoamingStatus string + type SIPCallEndpoint struct + Type string + URI string + type SMSService struct + func (c *SMSService) SendSMS(request SendSMSRequest) (*SendSMSResponse, *http.Response, error) + func (c *SMSService) SetBaseURL(baseURL string) + type SearchCallsRequest struct + ConversationUUID string + DateEnd string + DateStart string + Order string + PageSize int64 + RecordIndex int64 + Status string + type SearchCallsResponse struct + Count int64 + Embedded EmbeddedCalls + Links Links + PageSize int64 + RecordIndex int64 + type SearchVerificationRequest struct + RequestIDs []string + type SearchVerificationResponse struct + ErrorText string + Status string + VerificationRequests []struct{ ... } + type SendSMSRequest struct + APIKey string + APISecret string + Body string + Callback string + ClientRef string + From string + MessageClass int64 + ProtocolID int64 + StatusReportReq int64 + TTL int64 + Text string + Title string + To string + Type MessageType + URL string + Udh string + Validity int64 + Vcal string + Vcard string + type SendSMSResponse struct + MessageCount string + Messages []SendSMSResponseMessage + type SendSMSResponseMessage struct + ClientRef string + ErrorText string + MessageID string + MessagePrice string + Network string + RemainingBalance string + Status string + To string + type SimpleModifyCallRequest struct + Action string + type StandardInsightRequest struct + CNAM bool + Country string + Number string + type StandardInsightResponse struct + CallerName string + CallerType CallerType + CurrentCarrier *CarrierRecord + FirstName string + LastName string + OriginalCarrier *CarrierRecord + Ported PortedStatus + RefundPrice string + RemainingBalance string + RequestPrice string + type StartVerificationRequest struct + Brand string + CodeLength int8 + Country string + LG string + NextEventWait int16 + Number string + PINExpiry int16 + RequireType string + SenderID string + type StartVerificationResponse struct + ErrorText string + RequestID string + Status string + type StreamRequest struct + Loop int64 + StreamURL []string + type TalkRequest struct + Loop int64 + Text string + VoiceName string + type TransferCallRequest struct + Action string + Destination TransferDestination + type TransferDestination struct + Type string + URL []string + type ValidNumberStatus string + type VerifyService struct + func (c *VerifyService) SetBaseURL(baseURL string) + func (s *VerifyService) Check(request CheckVerificationRequest) (*CheckVerificationResponse, *http.Response, error) + func (s *VerifyService) Control(request ControlVerificationRequest) (*ControlVerificationResponse, *http.Response, error) + func (s *VerifyService) Search(request SearchVerificationRequest) (*SearchVerificationResponse, *http.Response, error) + func (s *VerifyService) Start(request StartVerificationRequest) (*StartVerificationResponse, *http.Response, error) + type WebSocketCallEndpoint struct + ContentType string + Headers interface{} + Type string + URI string