2020-08-03 20:48:58 +08:00
|
|
|
package jedi
|
|
|
|
|
|
|
|
import "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk"
|
|
|
|
|
2020-08-04 12:23:34 +08:00
|
|
|
const (
|
2020-08-06 15:41:02 +08:00
|
|
|
HOST = "jedi"
|
2020-08-04 12:23:34 +08:00
|
|
|
VERSION = "2020-08-04"
|
|
|
|
)
|
|
|
|
|
2020-08-03 20:48:58 +08:00
|
|
|
type Client struct {
|
|
|
|
sdk.Client
|
|
|
|
}
|
|
|
|
|
2020-08-04 12:23:34 +08:00
|
|
|
func (c *Client) SendSms(req *SendSmsRequest) (response *SendSmsResponse, err error) {
|
|
|
|
response = CreateSendSmsResponse()
|
|
|
|
err = c.DoAction(req, response)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewClientWithAccessKey(accesskey, secrect, source string) (client *Client, err error) {
|
|
|
|
client = &Client{}
|
2020-08-04 21:14:06 +08:00
|
|
|
err = client.InitWithAccessKey(accesskey, secrect, source)
|
2020-08-04 12:23:34 +08:00
|
|
|
return
|
2020-08-03 20:48:58 +08:00
|
|
|
}
|