返回顶部
w

wxpush微信推送

微信模板消息推送 skill。支持三种 wxpush API 格式:edgeone(默认)、wxpush(frankiejun 项目)、go-wxpush。使用场景:发送微信推送消息、配置 wxpush 环境。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.1
安全检测
已通过
139
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

wxpush

WXPush 技能

微信模板消息推送,支持三种 API 格式切换(对应三个不同项目)。

配置

配置文件:~/.config/wxpush/wxpush.env

bash
WXPUSHAPIURL=https://your-service.com # 服务地址
WXPUSHAPITOKEN=your_token # API Token(edgeone 可选,wxpush 必填,go-wxpush 留空)
WXPUSH_MODE=edgeone # API 模式: edgeone | wxpush | go-wxpush
WXPUSHAPPID=wxappid # 微信 AppID(go-wxpush 必填)
WXPUSHSECRET=wxsecret # 微信 Secret(go-wxpush 必填)
WXPUSH_USERID=openid1|openid2 # 默认接收用户
WXPUSHTEMPLATEID=template_id # 模板 ID
WXPUSH_SKIN= # 皮肤(可选,edgeone 原生支持)
WXPUSHBASEURL= # 跳转 URL(可选)

如配置文件不存在,引导用户创建:询问 mode、token、wx 配置等,写入 ~/.config/wxpush/wxpush.env 并设权限 600。

配置完成后,务必发送一条测试消息以确认配置正确。

发送消息

读取 ~/.config/wxpush/wxpush.env,根据 mode 选择 curl 或 Python 发送请求。

优先使用 curl(最简洁),不可用时用 Python(标准库,无需额外依赖)。

edgeone 模式(默认)

bash

curl


curl -s -X POST ${WXPUSHAPIURL}/wxsend \
-H Content-Type: application/json \
-d {\title\:\标题\,\content\:\内容\,\token\:\${WXPUSHAPITOKEN}\}

Python(标准库,无需安装)

python3 -c import json, os, sys from urllib.request import Request, urlopen cfg = {k.strip(): v.strip() for k, _, v in (l.partition(=) for l in open(os.path.expanduser(~/.config/wxpush/wxpush.env)) if = in l and not l.startswith(#))} data = json.dumps({title: sys.argv[1], content: sys.argv[2], token: cfg.get(WXPUSHAPITOKEN,)}).encode() req = Request(cfg.get(WXPUSHAPIURL,).rstrip(/) + /wxsend, data=data, headers={Content-Type:application/json}) print(urlopen(req, timeout=15).read().decode()) 标题 内容

wxpush 模式

bash

curl


curl -s -X POST ${WXPUSHAPIURL}/wxsend \
-H Authorization: ${WXPUSHAPITOKEN} \
-H Content-Type: application/json \
-d {\title\:\标题\,\content\:\内容\}

Python

python3 -c import json, os, sys from urllib.request import Request, urlopen cfg = {k.strip(): v.strip() for k, _, v in (l.partition(=) for l in open(os.path.expanduser(~/.config/wxpush/wxpush.env)) if = in l and not l.startswith(#))} data = json.dumps({title: sys.argv[1], content: sys.argv[2]}).encode() req = Request(cfg.get(WXPUSHAPIURL,).rstrip(/) + /wxsend, data=data, headers={Content-Type:application/json,Authorization:cfg.get(WXPUSHAPITOKEN,)}) print(urlopen(req, timeout=15).read().decode()) 标题 内容

go-wxpush 模式

bash

curl


curl -s -X POST ${WXPUSHAPIURL}/wxsend \
-H Content-Type: application/json \
-d {\title\:\标题\,\content\:\内容\,\appid\:\${WXPUSHAPPID}\,\secret\:\${WXPUSHSECRET}\,\userid\:\${WXPUSHUSERID}\,\templateid\:\${WXPUSHTEMPLATEID}\}

Python

python3 -c import json, os, sys from urllib.request import Request, urlopen cfg = {k.strip(): v.strip() for k, _, v in (l.partition(=) for l in open(os.path.expanduser(~/.config/wxpush/wxpush.env)) if = in l and not l.startswith(#))} data = json.dumps({title: sys.argv[1], content: sys.argv[2], appid: cfg.get(WXPUSHAPPID,), secret: cfg.get(WXPUSHSECRET,), userid: cfg.get(WXPUSHUSERID,), templateid: cfg.get(WXPUSHTEMPLATEID,)}).encode() req = Request(cfg.get(WXPUSHAPIURL,).rstrip(/) + /wxsend, data=data, headers={Content-Type:application/json}) print(urlopen(req, timeout=15).read().decode()) 标题 内容

三种 API 格式差异

特性edgeonewxpushgo-wxpush
对应项目shisheng820/WXPush-edgeonefrankiejun/wxpushhezhizheng/go-wxpush
默认地址
https://wxpush.hunluan.space | 无(自填) | https://push.hzz.cool | | token | 可选 | 必填 | | | token 传递方式 | query / body / header | query / header | — | | wx 配置 | 无 token 时必填 | 服务端有默认值 | 必填(无默认值) | | skin | 原生支持 | 需配合 wxpushSkin | 需配合 wxpushSkin | | 独有参数 | — | — | tz(时区) | | 成功响应 | 标准微信响应 | {msg: Successfully sent...} | {errcode: 0} |

mode 选择指南

  • - edgeone:默认地址 https://wxpush.hunluan.space,支持有/无 token 两种方式
  • wxpush:需自填服务地址,必须配置 token,wx 配置在服务端
  • go-wxpush:默认地址 https://push.hzz.cool,无 token,每次调用必须传完整 wx 配置

详细 API 文档

根据用户选择的 mode,加载对应 reference 文件:

皮肤列表(edgeone 原生支持)

MacOSHackerTheme-LGT、aurora-glass、cyberpunk、hacker-dark、minimalist-light、ocean-breeze、quiet-night、sakura、sunset-glow、terminal-neon、warm-magazine

安全提示

  • - 默认端点(wxpush.hunluan.space、push.hzz.cool)为第三方服务,AppID/Secret/Token 会发送至对应服务
  • 如不信任默认端点,请自行部署服务并设置 WXPUSHAPIURL
  • 配置文件权限建议设为 600(仅当前用户可读写)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 wxpush-1776094741 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 wxpush-1776094741 技能

通过命令行安装

skillhub install wxpush-1776094741

下载

⬇ 下载 wxpush v0.1.1(免费)

文件大小: 5.81 KB | 发布时间: 2026-4-14 14:23

v0.1.1 最新 2026-4-14 14:23
- Major simplification: scripts/wxpush.sh and scripts/wxpush-init.sh have been removed, and all usage is now fully documented in SKILL.md.
- Added concise copy-paste curl and Python commands for sending messages in all three API modes.
- Updated configuration instructions: now guides manual editing/creation of `~/.config/wxpush/wxpush.env` (no script needed).
- Added homepage, license, and metadata details.
- Expanded security and troubleshooting notes, and listed all available skins for edgeone mode.
- Usage scenarios and instructions are clearer and more focused for easy onboarding.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部