Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StructToMap ¶ added in v0.2.1
func StructToMap(obj interface{}) map[string]interface{}
func ToLowerFirstChar ¶ added in v0.2.1
Types ¶
type MessageSendParams ¶ added in v0.2.1
type MessageService ¶
type MessageService struct {
// contains filtered or unexported fields
}
func (*MessageService) Send ¶ added in v0.2.1
func (service *MessageService) Send(params *MessageSendParams) (response *UniResponse, err error)
type OtpSendParams ¶ added in v0.3.0
type OtpService ¶ added in v0.3.0
type OtpService struct {
// contains filtered or unexported fields
}
func (*OtpService) Send ¶ added in v0.3.0
func (service *OtpService) Send(params *OtpSendParams) (response *UniResponse, err error)
func (*OtpService) Verify ¶ added in v0.3.0
func (service *OtpService) Verify(params *OtpVerifyParams) (response *UniResponse, err error)
type OtpVerifyParams ¶ added in v0.3.0
type UniClient ¶
type UniClient struct { AccessKeyId string AccessKeySecret string Endpoint string SigningAlgorithm string Messages *MessageService Otp *OtpService }
func (*UniClient) GenerateRandomString ¶
func (*UniClient) Request ¶
func (c *UniClient) Request(action string, data map[string]interface{}) (response *UniResponse, err error)
func (*UniClient) SetEndpoint ¶
Click to show internal directories.
Click to hide internal directories.