|
## 安装
|
|
|
|
|
|
```bash
|
|
$ go get gitea.cdlsxd.cn/self-tools/l_msg_api
|
|
```
|
|
|
|
|
|
## 使用
|
|
```go
|
|
msg, err := l_msg_api.NewMessageCenter(yourKey, yoursecret, ServerIndex, TempIndex)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
//短信
|
|
res, err := msg.SendSms([]string{"15082245122"}, `{"content": "测试"}`)
|
|
|
|
```
|