You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
678 B

  1. package jedi
  2. import "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk"
  3. const (
  4. HOST = "jedi"
  5. VERSION = "2020-08-04"
  6. )
  7. type Client struct {
  8. sdk.Client
  9. }
  10. func (c *Client) SendSms(req *SendSmsRequest) (response *SendSmsResponse, err error) {
  11. response = CreateSendSmsResponse()
  12. err = c.DoAction(req, response)
  13. return
  14. }
  15. func (c *Client) Test(req *DemoTestRequest) (response *DemoTestResponse, err error) {
  16. response = CreateDemoTestResponse()
  17. err = c.DoAction(req, response)
  18. return
  19. }
  20. func NewClientWithAccessKey(accesskey, secrect, source string) (client *Client, err error) {
  21. client = &Client{}
  22. err = client.InitWithAccessKey(accesskey, secrect, source)
  23. return
  24. }