WechatHttpApiWeb
稳定修复
statement
- This tool manages PC WeChat through HTTP API interface to manage information conveniently and efficiently.
- It can be used to collect information as a whole and provide intelligent reply services to improve people's livelihood and improve life productivity.
- Please use it in a standardized way and avoid disturbing users. The sending frequency is limited to 3 seconds.
- Please do not use it illegally. Violators will be responsible for the consequences.
- Jointly create a good WeChat user environment
It is recommended to use eXiaotian https://github.com/wxext/wxext
eXiaoTian·WeChat extension
- The front-end function is still very rudimentary and I can only spare some time to do it. Everyone is welcome to submit improved codes.
- The demonstration code is a front-end interface Demo. Those who know the front-end are welcome to submit code to beautify the interface and add functions.
- If you have bug feedback or suggestions, you can join the group chat: 788266027. The password can be found in the demo address.
Click the link to join the group chat [WeChat front-end management platform]
Method one
Method 2
API list
/my
返回:
{"wxid":"weixin"}
可用于判断是否登陆
/mul
返回:
{"msg":"MUL NOT"}
MUL NOT 表示未开启多开
MUL OK 表示开启多开
开启方式(根据运行方式不同位置不同):
方式一:在微信安装目录下新建mul文件
方式二:在apiServer目录下新建mul文件
新建或删除文件进行开关,需要重启微信生效
/user
返回:
[
{
"wxid": "filehelper",
"nickName": "文件传输助手",
"reMark": ""
},
{
"wxid": "weixinguanhaozhushou",
"nickName": "微信公众平台",
"reMark": ""
},
{
"wxid": "gh_f0a92aa7146c",
"nickName": "微信收款助手",
"reMark": ""
}
]
/msg
可选参数:id=xxx
返回:
[
{
"id": 1,//每次启动时从1开始计算
"time": 1570197934,//消息时间
"type": 1,//类型,见底下附录,目前只解析文本
"wxid": "weixin",//发送方,系统、群、公众号、好友等
"sender": "",//群聊时的发送人
"msg": "Hello World",//消息内容,类型为1时文本
"membercount": "2"//消息参与人数,一般为2人,群聊为多人
}
]
不提供参数时,返回距最后收到消息3分钟内的列表
提供id参数时,返回大于该id的最近3分钟的消息
/send
参数:wxid=filehelper&msg=Hello
可选参数:atid=xxx
返回
{"wxid":"filehelper","msg":"Hello"}
群聊时艾特群员(atid填群员,msg格式为 @称呼 消息内容)
请规范使用,切忌骚乱用户,发送频率限制3秒一条
/group
参数:groupid=xxx
返回:[{ "wxid":"id1","nickName": "name1"},{ "wxid":"id2","nickName": "name2"}
http://140.238.32.85?wxid=filehelper
返回:{"wxid":"filehelper","token":"token"}
获取token有效期3天
type | illustrate |
---|---|
1 | text message |
3 | Picture message |
34 | voice message |
37 | Friend confirmation message |
40 | POSSIBLEFRIEND_MSG |
42 | Share business card |
43 | video message |
47 | animated emoticons |
48 | location message |
49 | share link |
50 | VOIPMSG |
51 | WeChat initialization message |
52 | VOIPNOTIFY |
53 | VOIPINVITE |
62 | short video |
9999 | SYSNOTICE |
10000 | System messages |
10002 | System operation messages |