Documentation ¶
Index ¶
- func New(phone string, accLifecycleEvent string) telesign.Request
- func NewClient(options ...telesign.OptConFunc) telesign.Connection
- type CarrierResponse
- type CoordinatesResponse
- type CountryResponse
- type LocationResponse
- type NumberingCleansingItemResponse
- type NumberingCleansingResponse
- type NumberingOriginalResponse
- type NumberingResponse
- type PhoneTypeResponse
- type Request
- type RequestData
- type Response
- type RiskResponse
- type TimezoneResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(options ...telesign.OptConFunc) telesign.Connection
NewClient return new Score API connection
Types ¶
type CarrierResponse ¶
type CarrierResponse struct {
Name string `json:"name"`
}
CarrierResponse returned by telesign API
type CoordinatesResponse ¶
type CoordinatesResponse struct { Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` }
CoordinatesResponse returned by telesign API
type CountryResponse ¶
type CountryResponse struct { Name string `json:"name"` Iso2 string `json:"iso2"` Iso3 string `json:"iso3"` }
CountryResponse returned by telesign API
type LocationResponse ¶
type LocationResponse struct { City string `json:"city"` State string `json:"state"` Zip string `json:"zip"` MetroCode string `json:"metro_code"` County string `json:"county"` Country CountryResponse `json:"country"` Coordinates CoordinatesResponse `json:"coordinates"` Timezone TimezoneResponse `json:"time_zone"` }
LocationResponse returned by telesign API
type NumberingCleansingItemResponse ¶
type NumberingCleansingItemResponse struct { CountryCode string `json:"country_code"` PhoneNumber string `json:"phone_number"` CleansedCode int64 `json:"cleansed_code"` MinLength int64 `json:"min_length"` MaxLength int64 `json:"max_length"` }
NumberingCleansingItemResponse returned by telesign API
type NumberingCleansingResponse ¶
type NumberingCleansingResponse struct { Call NumberingCleansingItemResponse `json:"call"` SMS NumberingCleansingItemResponse `json:"sms"` }
NumberingCleansingResponse returned by telesign API
type NumberingOriginalResponse ¶
type NumberingOriginalResponse struct { CompletePhoneNumber string `json:"complete_phone_number"` CountryCode string `json:"country_code"` PhoneNumber string `json:"phone_number"` }
NumberingOriginalResponse returned by telesign API
type NumberingResponse ¶
type NumberingResponse struct { Original NumberingOriginalResponse `json:"original"` Cleansing NumberingCleansingResponse `json:"cleansing"` }
NumberingResponse returned by telesign API
type PhoneTypeResponse ¶
PhoneTypeResponse returned by telesign API
type RequestData ¶
type RequestData struct { PhoneNumber string `schema:"-"` AccountLifecycleEvent string `schema:"account_lifecycle_event"` }
RequestData data
type Response ¶
type Response struct { telesign.MainResponse Location LocationResponse `json:"location"` Numbering NumberingResponse `json:"numbering"` PhoneType PhoneTypeResponse `json:"phone_type"` Carrier CarrierResponse `json:"carrier"` Risk RiskResponse `json:"risk"` }
Response returned by telesign API
type RiskResponse ¶
type RiskResponse struct { Level string `json:"evel"` Recommendation string `json:"recommendation"` Score int64 `json:"score"` }
RiskResponse returned by telesign API
type TimezoneResponse ¶
type TimezoneResponse struct { Name string `json:"name"` UTCOffsetMin string `json:"utc_offset_min"` UTCOffsetMax string `json:"utc_offset_max"` }
TimezoneResponse returned by telesign API
Click to show internal directories.
Click to hide internal directories.