返回顶部
p

postsyncer-social-media-assistant社交媒体助手

Manages social media through PostSyncer using REST and/or MCP. Use when scheduling, posting, or managing content across Instagram, TikTok, YouTube, X (Twitter), LinkedIn, Facebook, Threads, Bluesky, Pinterest, Telegram, Mastodon. Covers posts, media library (list, import URLs, delete, multipart file upload), media folders (CRUD), comments with optional `media` attachments, labels, campaigns, and analytics. Accounts must be pre-connected in the PostSyncer app.

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

postsyncer-social-media-assistant

PostSyncer 社交媒体助手

通过 REST API 使用 PostSyncer 自主管理社交媒体。

设置

  1. 1. 在 app.postsyncer.com 创建 PostSyncer 账户
  2. 关联社交媒体账号(Instagram、TikTok、YouTube、X、LinkedIn 等)
  3. 前往 设置 → API 集成 创建个人访问令牌,权限包括:workspaces、accounts、posts,以及(如使用)labels、campaigns
  4. 在 .env 中添加:POSTSYNCERAPITOKEN=yourtoken

PostSyncer MCP(可选)

PostSyncer MCP 使用与 REST 相同的 Bearer 令牌。常用工具:list-workspaces、list-accounts、帖子 CRUD、list-mediaget-mediaupload-media-from-urldelete-medialist-folderscreate-folderget-folderupdate-folderdelete-folder、评论、标签、营销活动、分析。

多部分文件上传仅通过 REST 实现:POST /api/v1/media/upload/file(不作为 MCP 工具公开)。当客户端无法发送多部分请求时,使用 upload-media-from-url 或 REST URL 导入。

如何进行 API 调用

所有请求均发送至 https://postsyncer.com/api/v1,并包含以下标头:

Authorization: Bearer $POSTSYNCERAPITOKEN
Content-Type: application/json

使用 webfetch、curl 或任何可用的 HTTP 工具。始终从环境中读取 $POSTSYNCERAPI_TOKEN。



API 参考

发现(优先调用)

列出工作区 — GET /api/v1/workspaces

bash
curl https://postsyncer.com/api/v1/workspaces \
-H Authorization: Bearer $POSTSYNCERAPITOKEN

返回包含 id、name、slug、timezone 的工作区。

列出账号 — GET /api/v1/accounts

bash
curl https://postsyncer.com/api/v1/accounts \
-H Authorization: Bearer $POSTSYNCERAPITOKEN

返回包含 id、platform、username、workspace_id 的账号。



媒体库

需要 posts 权限。响应包含 id、workspaceid、folderid 和资产元数据。

列出媒体 — GET /api/v1/media

bash
curl -G https://postsyncer.com/api/v1/media \
--data-urlencode workspace_id=12 \
--data-urlencode page=1 \
--data-urlencode per_page=50 \
-H Authorization: Bearer $POSTSYNCERAPITOKEN

查询参数:workspaceid、folderid、rootonly(true/false)、page、perpage(最大 100)。

获取媒体 — GET /api/v1/media/{media_id}

bash
curl https://postsyncer.com/api/v1/media/999 \
-H Authorization: Bearer $POSTSYNCERAPITOKEN

从 URL 导入 — POST /api/v1/media/upload/url

bash
curl -X POST https://postsyncer.com/api/v1/media/upload/url \
-H Authorization: Bearer $POSTSYNCERAPITOKEN \
-H Content-Type: application/json \
-d {workspaceid: 12, urls: [https://example.com/photo.jpg], folderid: null}

上传文件(多部分) — POST /api/v1/media/upload/file

使用 multipart/form-data,包含 workspace_id、file 等字段(如果客户端使用分块上传,还可包含可选的 chunk/chunk 元数据)。非 JSON 格式。

删除媒体 — DELETE /api/v1/media/{media_id} (先确认)

bash
curl -X DELETE https://postsyncer.com/api/v1/media/999 \
-H Authorization: Bearer $POSTSYNCERAPITOKEN



媒体文件夹

需要 posts 权限。

列出文件夹 — GET /api/v1/folders

bash
curl -G https://postsyncer.com/api/v1/folders \
--data-urlencode workspace_id=12 \
--data-urlencode root=1 \
-H Authorization: Bearer $POSTSYNCERAPITOKEN

查询参数:workspaceid、parentid、root(仅顶层)。

创建文件夹 — POST /api/v1/folders

bash
curl -X POST https://postsyncer.com/api/v1/folders \
-H Authorization: Bearer $POSTSYNCERAPITOKEN \
-H Content-Type: application/json \
-d {workspaceid: 12, name: 营销活动素材, color: #3b82f6, parentid: null}

获取文件夹 — GET /api/v1/folders/{id}

更新文件夹 — PUT /api/v1/folders/{id}

bash
curl -X PUT https://postsyncer.com/api/v1/folders/5 \
-H Authorization: Bearer $POSTSYNCERAPITOKEN \
-H Content-Type: application/json \
-d {name: 重命名文件夹}

删除文件夹 — DELETE /api/v1/folders/{id} (先确认)



帖子

列出帖子 — GET /api/v1/posts

bash
curl https://postsyncer.com/api/v1/posts?page=1&perpage=20&includecomments=false \
-H Authorization: Bearer $POSTSYNCERAPITOKEN

查询参数:page、perpage(最大 100)、includecomments(true/false)。

获取帖子 — GET /api/v1/posts/{id}

bash
curl https://postsyncer.com/api/v1/posts/123 \
-H Authorization: Bearer $POSTSYNCERAPITOKEN

创建帖子 — POST /api/v1/posts

bash
curl -X POST https://postsyncer.com/api/v1/posts \
-H Authorization: Bearer $POSTSYNCERAPITOKEN \
-H Content-Type: application/json \
-d {
workspace_id: 12,
schedule_type: schedule,
content: [{text: 标题 #标签, media: [42, https://example.com/image.jpg]}],
accounts: [{id: 136}, {id: 95, settings: {board_id: 123}}],
schedulefor: {date: 2026-03-26, time: 14:30, timezone: America/NewYork},
labels: [5],
repeatable: false
}

  • - scheduletype:publishnow | schedule | draft
  • schedulefor:可选的排期对象,当 scheduletype 为 schedule 时使用。提供 {date: YYYY-MM-DD, time: HH:MM, timezone: ...} 以排期到特定日期/时间,或省略/留空以自动排期到下一个可用时间段
  • content:帖子线程项数组。每项需要 text 和/或 media:一个包含媒体库 ID(整数)和/或 HTTPS URL 字符串的数组(需要稳定 ID 时,先导入或列出媒体)
  • accounts:{id, settings?} 数组。平台特定选项放在 settings 中

更新帖子 — PUT /api/v1/posts/{id}

bash
curl -X PUT https://postsyncer.com/api/v1/posts/123 \
-H Authorization: Bearer $POSTSYNCERAPITOKEN \
-H Content-Type: application/json \

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 postsyncer-1776374245 技能

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

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

通过命令行安装

skillhub install postsyncer-1776374245

下载

⬇ 下载 postsyncer-social-media-assistant v2.1.1(免费)

文件大小: 5.09 KB | 发布时间: 2026-4-17 13:52

v2.1.1 最新 2026-4-17 13:52
postsyncer 2.1.1

- Updated documentation to clarify that in post creation, the schedule_for field is optional and can be omitted to auto-schedule (previously marked as required).
- No code or file changes; documentation only.

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

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

p2p_official_large
返回顶部