7
0
gaore-common-sdk-go/services/jedi/client.go
2020-08-06 16:04:44 +08:00

31 lines
678 B
Go

package jedi
import "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk"
const (
HOST = "jedi"
VERSION = "2020-08-04"
)
type Client struct {
sdk.Client
}
func (c *Client) SendSms(req *SendSmsRequest) (response *SendSmsResponse, err error) {
response = CreateSendSmsResponse()
err = c.DoAction(req, response)
return
}
func (c *Client) Test(req *DemoTestRequest) (response *DemoTestResponse, err error) {
response = CreateDemoTestResponse()
err = c.DoAction(req, response)
return
}
func NewClientWithAccessKey(accesskey, secrect, source string) (client *Client, err error) {
client = &Client{}
err = client.InitWithAccessKey(accesskey, secrect, source)
return
}