1.0.7 • Published 4 years ago

tencent-wx-sdk v1.0.7

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Classes

Constants

Functions

Gzh

微信公众号接口封装类

Kind: global class

new Gzh()

微信公众号接口封装类ALL GitHub.

gzh.send_custom_message(touser, msgtype, text)

发送客服消息

Kind: instance method of Gzh

ParamTypeDescription
touserstring用户openid
msgtypestring消息类型 text
textstring发送文本内容

gzh.send_template_message(touser, msgtype, text)

发送模板消息

Kind: instance method of Gzh

ParamType
touserstring
msgtype*
text*

gzh.get_callback_ip()

获取微信服务器ip

Kind: instance method of Gzh

gzh.checkSignature(timestamp, nonce, token)

校验微信事件推送接口 验签

Kind: instance method of Gzh

ParamType
timestampnumber
noncenumber
tokenstring | 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

ParamType
algorithmstring
contentany

sha1(content) ⇒ string

Kind: global function

ParamType
contentany

md5(content) ⇒ string

Kind: global function

ParamType
contentany

checkSignature(timestamp, nonce, token)

校验微信事件推送接口 验签

Kind: global function

ParamType
timestampnumber
noncenumber
tokenstring | number
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago