docs(baoyu-post-to-wechat): add WeChat API credentials configuration guide

This commit is contained in:
Jim Liu 宝玉 2026-01-28 22:10:27 -06:00
parent 7cf30e969f
commit cf611a4514
2 changed files with 44 additions and 2 deletions

View File

@ -535,7 +535,28 @@ Post content to WeChat Official Account (微信公众号). Two modes available:
/baoyu-post-to-wechat 文章 --html article.html
```
Prerequisites: Google Chrome installed. First run requires QR code login (session preserved).
**Publishing Methods**:
| Method | Speed | Requirements |
|--------|-------|--------------|
| API (Recommended) | Fast | API credentials |
| Browser | Slow | Chrome, login session |
**API Configuration** (for faster publishing):
```bash
# Add to .baoyu-skills/.env (project-level) or ~/.baoyu-skills/.env (user-level)
WECHAT_APP_ID=your_app_id
WECHAT_APP_SECRET=your_app_secret
```
To obtain credentials:
1. Visit https://developers.weixin.qq.com/platform/
2. Go to: 我的业务 → 公众号 → 开发密钥
3. Create development key and copy AppID/AppSecret
4. Add your machine's IP to the whitelist
**Browser Method** (no API setup needed): Requires Google Chrome. First run opens browser for QR code login (session preserved).
### AI Generation Skills

View File

@ -535,7 +535,28 @@ npx skills add jimliu/baoyu-skills
/baoyu-post-to-wechat 文章 --html article.html
```
前置要求:已安装 Google Chrome首次运行需扫码登录登录状态会保存
**发布方式**
| 方式 | 速度 | 要求 |
|------|------|------|
| API推荐 | 快 | API 凭证 |
| 浏览器 | 慢 | Chrome登录会话 |
**API 配置**(更快的发布方式):
```bash
# 添加到 .baoyu-skills/.env项目级或 ~/.baoyu-skills/.env用户级
WECHAT_APP_ID=你的AppID
WECHAT_APP_SECRET=你的AppSecret
```
获取凭证方法:
1. 访问 https://developers.weixin.qq.com/platform/
2. 进入:我的业务 → 公众号 → 开发密钥
3. 添加开发密钥,复制 AppID 和 AppSecret
4. 将你操作的机器 IP 加入白名单
**浏览器方式**(无需 API 配置):需已安装 Google Chrome首次运行需扫码登录登录状态会保存
### AI 生成技能 (AI Generation Skills)