31 lines
678 B
Go
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
|
|
}
|