Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NumverifyErrorResponse ¶ added in v2.8.0
type NumverifyErrorResponse struct {
Message string `json:"message"`
}
type NumverifyRequest ¶ added in v2.11.0
type NumverifyRequest struct {
// contains filtered or unexported fields
}
func (*NumverifyRequest) SetApiKey ¶ added in v2.11.0
func (r *NumverifyRequest) SetApiKey(k string) NumverifySupplierRequestInterface
func (*NumverifyRequest) ValidateNumber ¶ added in v2.11.0
func (r *NumverifyRequest) ValidateNumber(internationalNumber string) (res *NumverifyValidateResponse, err error)
type NumverifySupplier ¶
type NumverifySupplier struct {
Uri string
}
func NewNumverifySupplier ¶
func NewNumverifySupplier() *NumverifySupplier
func (*NumverifySupplier) Request ¶ added in v2.11.0
func (s *NumverifySupplier) Request() NumverifySupplierRequestInterface
type NumverifySupplierInterface ¶
type NumverifySupplierInterface interface {
Request() NumverifySupplierRequestInterface
}
type NumverifySupplierRequestInterface ¶ added in v2.11.0
type NumverifySupplierRequestInterface interface { SetApiKey(string) NumverifySupplierRequestInterface ValidateNumber(string) (*NumverifyValidateResponse, error) }
type NumverifyValidateResponse ¶
type NumverifyValidateResponse struct { Valid bool `json:"valid"` Number string `json:"number"` LocalFormat string `json:"local_format"` InternationalFormat string `json:"international_format"` CountryPrefix string `json:"country_prefix"` CountryCode string `json:"country_code"` CountryName string `json:"country_name"` Location string `json:"location"` Carrier string `json:"carrier"` LineType string `json:"line_type"` }
NumverifyValidateResponse REST API response
type OVHAPIErrorResponse ¶ added in v2.8.1
type OVHAPIErrorResponse struct {
Message string `json:"message"`
}
type OVHAPIResponseNumber ¶
type OVHAPIResponseNumber struct { MatchingCriteria interface{} `json:"matchingCriteria"` City string `json:"city"` ZneList []string `json:"zne-list"` InternationalNumber string `json:"internationalNumber"` Country string `json:"country"` AskedCity interface{} `json:"askedCity"` ZipCode string `json:"zipCode"` Number string `json:"number"` Prefix int `json:"prefix"` }
OVHAPIResponseNumber is a type that describes an OVH number range
type OVHScannerResponse ¶
OVHScannerResponse is the OVH scanner response
type OVHSupplier ¶
type OVHSupplier struct{}
func NewOVHSupplier ¶
func NewOVHSupplier() *OVHSupplier
func (*OVHSupplier) Search ¶
func (s *OVHSupplier) Search(num number.Number) (*OVHScannerResponse, error)
type OVHSupplierInterface ¶
type OVHSupplierInterface interface {
Search(number.Number) (*OVHScannerResponse, error)
}
Click to show internal directories.
Click to hide internal directories.