wechatClient

package
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2019 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL