Documentation ¶
Index ¶
- Constants
- func GenerateTelesignHeaders(customer_id string, secret_key string, method_name string, resource string, ...) (headers map[string]string)
- func SetAPIHost(hostname string)
- func SetCustomerID(cid string)
- func SetSecretKey(key string)
- type TSResponse
- func Call(phone_number string, message string, message_type string, ...) TSResponse
- func CallStatus(reference_id string, params map[string]string) TSResponse
- func Delete(resource string, fields url.Values) (response TSResponse)
- func Get(resource string, fields url.Values) (response TSResponse)
- func Message(phone_number string, message string, message_type string, ...) TSResponse
- func MessageStatus(reference_id string, params map[string]string) TSResponse
- func PhoneID(phone_number string, params map[string]string) TSResponse
- func Ping() TSResponse
- func Post(resource string, fields url.Values) (response TSResponse)
- func Put(resource string, fields url.Values) (response TSResponse)
- func Score(phone_number string, account_lifecycle_event string, params map[string]string) TSResponse
- func VerificationStatus(external_id string, params map[string]string) TSResponse
Constants ¶
View Source
const ( MaxIdleConnections int = 20 RequestTimeout int = 10 PING_RESOURCE string = "/ping" )
Constants
View Source
const ( MESSAGING_RESOURCE string = "/v1/messaging" STATUS_RESOURCE string = "/v1/messaging/" )
View Source
const ( VOICE_RESOURCE string = "/v1/voice" VOICE_STATUS_RESOURCE string = "/v1/voice/" )
View Source
const (
PHONEID_RESOURCE string = "/v1/phoneid/"
)
View Source
const (
SCORE_RESOURCE string = "/v1/score/"
)
View Source
const (
VERIFICATION_STATUS_RESOURCE string = "/v1/mobile/verification/status/"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateTelesignHeaders ¶
func SetAPIHost ¶
func SetAPIHost(hostname string)
func SetSecretKey ¶
func SetSecretKey(key string)
Types ¶
type TSResponse ¶
Telesign response structure
func CallStatus ¶
func CallStatus(reference_id string, params map[string]string) TSResponse
func MessageStatus ¶
func MessageStatus(reference_id string, params map[string]string) TSResponse
func Ping ¶
func Ping() TSResponse
func Score ¶
func Score(phone_number string, account_lifecycle_event string, params map[string]string) TSResponse
func VerificationStatus ¶
func VerificationStatus(external_id string, params map[string]string) TSResponse
Click to show internal directories.
Click to hide internal directories.