跳转到主要内容

微信朋友圈管理

获取朋友圈列表、发布朋友圈、评论和点赞等操作

SKILL 名称

SKILL 名称说明
juhecli-wx-sns个微朋友圈管理 - 浏览/发布/评论/点赞/删除朋友圈

获取朋友圈列表

获取当前登录账号的朋友圈动态列表。

语法

bash
juhe-cli wx sns timeline '{}'

参数

参数类型必填说明
(无)--该命令无需参数

示例

bash
# 获取朋友圈列表
juhe-cli wx sns timeline '{}'

发布朋友圈

发布一条新的朋友圈动态,支持文字和图片。

语法

bash
juhe-cli wx sns post '{"content": "今天天气不错", "image_list": ["url1"]}'

参数

参数类型必填说明
contentstring朋友圈文字内容
image_listarray图片 URL 列表,最多 9 张

示例

bash
# 发布纯文字朋友圈
juhe-cli wx sns post '{"content": "今天天气不错"}'

# 发布带图片的朋友圈
juhe-cli wx sns post '{"content": "美景分享", "image_list": ["https://example.com/img1.jpg", "https://example.com/img2.jpg"]}'

评论朋友圈

对指定的朋友圈动态进行评论。

语法

bash
juhe-cli wx sns comment '{"sns_id": "123", "username": "wxid_xxx", "content": "评论内容"}'

参数

参数类型必填说明
sns_idstring朋友圈 ID
usernamestring要回复的好友微信 ID
contentstring评论内容

示例

bash
# 评论朋友圈
juhe-cli wx sns comment '{"sns_id": "123456789", "username": "wxid_abc123", "content": "真美!"}'

点赞朋友圈

为指定的朋友圈动态点赞。

语法

bash
juhe-cli wx sns like '{"sns_id": "123", "username": "wxid_xxx"}'

参数

参数类型必填说明
sns_idstring朋友圈 ID
usernamestring朋友圈发布者的微信 ID

示例

bash
# 点赞朋友圈
juhe-cli wx sns like '{"sns_id": "123456789", "username": "wxid_abc123"}'

删除朋友圈

删除自己发布的朋友圈动态。

语法

bash
juhe-cli wx sns delete '{"sns_id": "123"}'

参数

参数类型必填说明
sns_idstring要删除的朋友圈 ID

示例

bash
# 删除朋友圈
juhe-cli wx sns delete '{"sns_id": "123456789"}'