Skip to content

微信消息实时推送服务[WxPusher]的go版本sdk,可以通过API实时给个人微信推送消息。wechat pusher.

License

Notifications You must be signed in to change notification settings

wxpusher/wxpusher-sdk-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wxpusher-client

zjiecode/wxpusher-client的 Go 语言版本

安装

go get -u github.com/wxpusher/wxpusher-sdk-go
go get github.com/wxpusher/[email protected]

引入

import (
	"github.com/wxpusher/wxpusher-sdk-go"
	"github.com/wxpusher/wxpusher-sdk-go/model"
)

发送消息

msg := model.NewMessage(appToken).SetContent("测试").AddUId(uId)
msgArr, err := wxpusher.SendMessage(msg)
fmt.Println(msgArr, err)

查询状态

status, err := wxpusher.QueryMessageStatus(2384429)
fmt.Println(status, err)

创建参数二维码

qrcode := model.Qrcode{AppToken: appToken, Extra: "XX渠道用户"}
qrcodeResp, err := wxpusher.CreateQrcode(&qrcode)
fmt.Println(qrcodeResp, err)

查询 App 的关注用户

result, err := wxpusher.QueryWxUser(appToken, 1, 20)
fmt.Println(result, err)

About

微信消息实时推送服务[WxPusher]的go版本sdk,可以通过API实时给个人微信推送消息。wechat pusher.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages