1.0.7 • Published 4 years ago
tencent-wx-sdk v1.0.7
Classes
Constants
Functions
Gzh
微信公众号接口封装类
Kind: global class
new Gzh()
微信公众号接口封装类ALL GitHub.
gzh.send_custom_message(touser, msgtype, text)
发送客服消息
Kind: instance method of Gzh
Param | Type | Description |
---|---|---|
touser | string | 用户openid |
msgtype | string | 消息类型 text |
text | string | 发送文本内容 |
gzh.send_template_message(touser, msgtype, text)
发送模板消息
Kind: instance method of Gzh
Param | Type |
---|---|
touser | string |
msgtype | * |
text | * |
gzh.get_callback_ip()
获取微信服务器ip
Kind: instance method of Gzh
gzh.checkSignature(timestamp, nonce, token)
校验微信事件推送接口 验签
Kind: instance method of Gzh
Param | Type |
---|---|
timestamp | number |
nonce | number |
token | string | number |
rp
Created by jiangwei on 2020/06/30 . Copyright (c) 2020 (jw872505975@gmail.com). All rights reserved.
Kind: global constant
encrypt(algorithm, content) ⇒ string
Kind: global function
Param | Type |
---|---|
algorithm | string |
content | any |
sha1(content) ⇒ string
Kind: global function
Param | Type |
---|---|
content | any |
md5(content) ⇒ string
Kind: global function
Param | Type |
---|---|
content | any |
checkSignature(timestamp, nonce, token)
校验微信事件推送接口 验签
Kind: global function
Param | Type |
---|---|
timestamp | number |
nonce | number |
token | string | number |