Documentation ¶
Index ¶
- func NewClient(options ...telesign.OptConFunc) telesign.Connection
- func NewVerify(ip string, phone string, ucid string, lang string, code string, msg string, ...) telesign.Request
- type VerifyDataResponse
- type VerifyNumberingResponse
- type VerifyPhoneTypeResponse
- type VerifyRequest
- type VerifyRequestData
- type VerifyResponse
- type VerifyRiskResponse
- type VerifyVoiceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(options ...telesign.OptConFunc) telesign.Connection
NewClient return new Voice API connection
Types ¶
type VerifyDataResponse ¶
type VerifyDataResponse struct { CodeState string `json:"code_state"` CodeEntered string `json:"code_entered"` }
VerifyDataResponse returned by telesign API
type VerifyNumberingResponse ¶
type VerifyNumberingResponse struct { PhoneNumber string `json:"phone_number"` MinLength int `json:"min_length"` MaxLength int `json:"max_length"` CountryCode string `json:"country_code"` }
VerifyNumberingResponse returned by telesign API
type VerifyPhoneTypeResponse ¶
type VerifyPhoneTypeResponse struct { Code string `json:"code"` Description string `json:"description"` }
VerifyPhoneTypeResponse returned by telesign API
type VerifyRequest ¶
type VerifyRequest struct {
// contains filtered or unexported fields
}
VerifyRequest object
func (*VerifyRequest) GetBody ¶
func (r *VerifyRequest) GetBody() string
GetBody return body request
func (VerifyRequest) GetMethod ¶
func (r VerifyRequest) GetMethod() string
GetMethod return method request
func (VerifyRequest) ParseResponse ¶
ParseResponse return parsed response
type VerifyRequestData ¶
type VerifyRequestData struct { OriginatingIP string `schema:"originating_ip"` PhoneNumber string `schema:"phone_number"` Ucid string `schema:"ucid"` Language string `schema:"language"` VerifyCode string `schema:"verify_code"` TTSMessage string `schema:"tts_message"` CallForwardAction string `schema:"call_forward_action"` }
VerifyRequestData data
type VerifyResponse ¶
type VerifyResponse struct { telesign.MainResponse SubResource string `json:"sub_resource"` Errors []telesign.Error `json:"errors"` Verify VerifyDataResponse `json:"verify"` Voice VerifyVoiceResponse `json:"voice"` PhoneType VerifyPhoneTypeResponse `json:"phone_type"` Risk VerifyRiskResponse `json:"risk"` Numbering VerifyNumberingResponse `json:"numbering"` ExternalID string `json:"external_id"` SignatureString string `json:"signature_string"` }
VerifyResponse returned by telesign API
type VerifyRiskResponse ¶
type VerifyRiskResponse struct { Score int64 `json:"score"` Recommendation string `json:"recommendation"` Level string `json:"level"` }
VerifyRiskResponse returned by telesign API
type VerifyVoiceResponse ¶
type VerifyVoiceResponse struct {
CallerID string `json:"caller_id"`
}
VerifyVoiceResponse returned by telesign API
Click to show internal directories.
Click to hide internal directories.