Back to godoc.org
cloudtui.com/key/xiao / wechatClient

Package wechatClient

v0.0.25
Latest Go to latest

The highest tagged major version is .

Published: Nov 27, 2019 | Licenses: Apache-2.0 , Apache-2.0 | Module: cloudtui.com/key/xiao

Overview

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

Index

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"}}'

http://127.0.0.1:9001/api/wechat-v1/message/send
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

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