pushdeer 的golanga版本的sdk
在模块中安装
go get github.com/Luoxin/go-pushdeer-sdk
package main
import (
"github.com/Luoxin/go-pushdeer-sdk/psdk"
log "github.com/sirupsen/logrus"
)
func main() {
p, err := psdk.New("http://127.0.0.1:8800", "token")
if err != nil {
log.Errorf("err:%v", err)
return
}
resp, err := p.DeviceList(&psdk.DeviceListReq{})
if err != nil {
log.Errorf("err:%v", err)
return
}
for _, device := range resp.Content.Devices {
log.Infof("%+v", device)
}
}
- 完善测试
- 完善自动化检测
-
/message/push
接口中的result的处理