| 1 | package dm |
| 2 | |
| 3 | import ( |
| 4 | "github.com/denverdino/aliyungo/common" |
| 5 | ) |
| 6 | |
| 7 | const ( |
| 8 | EmailEndPoint = "https://dm.aliyuncs.com/" |
| 9 | SingleSendMail = "SingleSendMail" |
| 10 | BatchSendMail = "BatchSendMail" |
| 11 | EmailAPIVersion = "2015-11-23" |
| 12 | ) |
| 13 | |
| 14 | type Client struct { |
| 15 | common.Client |
| 16 | } |
| 17 | |
| 18 | func NewClient(accessKeyId, accessKeySecret string) *Client { |
| 19 | client := new(Client) |
| 20 | client.Init(EmailEndPoint, EmailAPIVersion, accessKeyId, accessKeySecret) |
| 21 | return client |
| 22 | } |