Back to / wechatClient

Package wechatClient

Latest Go to latest

The highest tagged major version is .

Published: Nov 27, 2019 | Licenses: Apache-2.0 , Apache-2.0 | Module:


用于其他golang代码包相对轻松的调用发送微信通知 需要增加测试,提升代码质量


func GetToken

func GetToken(corpid string, secret string) (string, error)

func SendMessage

func SendMessage(token string, key string, value []byte) error

curl -H "Content-Type:application/json" -X POST --data '{"msgtype":"text","agentid":1,"text":{"content":"发送的内容"},"kv":{"orderid":"1","companyid":"2"}}'
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier