返回顶部
P

PostThatLater定时发布社交帖

Schedule and manage social media posts across multiple social platforms. Query analytics, manage your queue, and publish immediately — all via natural language. Call GET /api/v1/platforms for the list of platforms active on this instance.

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

PostThatLater

PostThatLater 技能

从 Claude Code 或任何 AI 助手安排和管理社交媒体帖子。

设置

1. 创建账户

在 https://postthatlater.com 注册 — 使用 API 需要订阅。

2. 生成 API 密钥

在 PostThatLater 中:账户设置 → API 密钥 → 创建新密钥

复制 skptl... 密钥 — 它只显示一次。

3. 设置环境变量

bash
export PTLAPIKEY=skptlyourkeyhere

添加到 ~/.zshrc 或 ~/.bashrc 以在会话间持久化。

4. 验证

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

你应该能看到已连接的社交媒体账户。



基础 URL

https://postthatlater.com

所有 API 请求都需要:

Authorization: Bearer $PTLAPIKEY
Content-Type: application/json (用于 POST/PATCH)



给代理的关键提示

  1. 1. 先调用 GET /api/v1/accounts — 你需要数字账户 ID 来安排帖子。永远不要猜测它们。
  2. 每个会话询问一次时区 — 所有 scheduledat 值必须是 ISO 8601 UTC 格式(例如 2026-03-10T09:00:00Z)。从用户的本地时间转换。
  3. 在 publishnow 前确认 — 发布是即时且不可逆的。在调用立即发布端点前务必与用户确认。
  4. 在每个 POST/PATCH 上使用 Idempotency-Key — 为每个请求生成一个 UUID 以防止重试时重复发帖。示例:Idempotency-Key: $(uuidgen | tr [:upper:] [:lower:])。
  5. 检查平台限制 — 始终调用 GET /api/v1/platforms 获取可用平台的实时列表及其限制。永远不要硬编码平台列表或假设某个平台可用。
  6. 跨平台发布 — 在 accountids 中传递多个 ID 以一次性将相同内容发布到所有平台。API 为每个账户创建一个帖子记录,并通过 groupid 链接它们。
  7. 响应中所有时间均为 UTC — 在显示预定时间时转换为用户的时区。
  8. 带图片发帖 — 首先使用图片 URL 调用 POST /api/v1/images 获取文件名,然后在 POST /api/v1/posts 的 images 数组中传递该文件名。使用 GET /api/v1/images 列出已存储的图片,这些图片可以重复使用而无需重新上传。

账户

列出所有已连接的账户

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

响应:
json
{
data: [
{
id: 12,
platform: bluesky,
handle: you.bsky.social,
display_name: you.bsky.social,
status: connected,
created_at: 2026-01-10T08:30:00.000Z,
updated_at: 2026-01-10T08:30:00.000Z
}
],
meta: { request_id: ... }
}

status 为 connected(正常)或 error(需要在仪表盘中重新连接)。

获取单个账户

bash
curl https://postthatlater.com/api/v1/accounts/12 \
-H Authorization: Bearer $PTLAPIKEY



帖子

列出帖子

bash
curl https://postthatlater.com/api/v1/posts?status=pending&limit=10&offset=0 \
-H Authorization: Bearer $PTLAPIKEY

查询参数:

  • - status — pending、posted 或 failed(省略则返回全部)
  • platform — 例如 bluesky、mastodon、linkedin
  • limit — 最大结果数(默认:20,最大:100)
  • offset — 跳过 N 个结果用于分页(默认:0)

响应:
json
{
data: [
{
id: 101,
text: Hello from the API!,
scheduled_at: 2026-03-15T09:00:00.000Z,
status: pending,
platform: bluesky,
account_id: 12,
images: [],
platformpostid: null,
platformposturl: null,
error_message: null,
retry_count: 0,
likes: 0,
comments: 0,
shares: 0,
group_id: null,
created_at: 2026-03-01T12:00:00.000Z,
updated_at: null
}
],
meta: { request_id: ..., total: 5, limit: 10, offset: 0 }
}

创建帖子(安排)

bash
curl -X POST https://postthatlater.com/api/v1/posts \
-H Authorization: Bearer $PTLAPIKEY \
-H Content-Type: application/json \
-H Idempotency-Key: $(uuidgen | tr [:upper:] [:lower:]) \
-d {
text: Hello from the PostThatLater API!,
scheduled_at: 2026-03-15T09:00:00.000Z,
account_ids: [12, 15]
}

请求体参数:

  • - text (必填) — 帖子内容;不得超过平台字符限制
  • scheduledat (必填) — ISO 8601 UTC 日期时间;必须是未来时间
  • accountids (必填) — 账户 ID 数组(至少一个)
  • images — 可选的图片文件名数组

返回 HTTP 201 及第一个创建的帖子。所有帖子共享一个 group_id。

获取单个帖子

bash
curl https://postthatlater.com/api/v1/posts/101 \
-H Authorization: Bearer $PTLAPIKEY

更新帖子

仅对 pending 状态的帖子有效。如果已发布或失败,返回 409 conflict。

bash
curl -X PATCH https://postthatlater.com/api/v1/posts/101 \
-H Authorization: Bearer $PTLAPIKEY \
-H Content-Type: application/json \
-H Idempotency-Key: $(uuidgen | tr [:upper:] [:lower:]) \
-d {
text: Updated content for the post,
scheduled_at: 2026-03-16T10:00:00.000Z
}

删除帖子

不能删除 posted 状态的帖子(返回 409)。失败的帖子可以删除。

bash
curl -X DELETE https://postthatlater.com/api/v1/posts/101 \
-H Authorization: Bearer $PTLAPIKEY

响应:
json
{ data: { deleted: true, id: 101 }, meta: { request_id: ... } }

立即发布

绕过调度器。帖子必须是 pending 或 failed 状态。不可逆 — 先与用户确认。

bash
curl -X POST https://postthatlater.com/api/v1/posts/101/publish-now \
-H Authorization: Bearer $PTLAPIKEY

响应:
json
{
data: {
id: 101,
status: posted,
platformposturl: https://bsky.app/profile/you.bsky.social/post/...,
...
},
meta: { request_id: ... }
}



图片

通过先从 URL 获取图片,然后在创建帖子时传递返回的文件名来发布带图片的帖子。

从 URL 获取图片

下载、处理(EXIF 旋转、压缩、格式转换)并在服务器端存储图片。返回一个用于帖子的 filename。

bash
curl -X POST https://postthatlater.com/api/v1/images \
-H Authorization: Bearer $PTLAPIKEY \
-H Content-Type: application/json \
-d {url: https://example.com/photo.jpg}

响应:
json
{
data: { filename: 174103680

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 postthatlater-1776178280 技能

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

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

通过命令行安装

skillhub install postthatlater-1776178280

下载

⬇ 下载 PostThatLater v1.0.0(免费)

文件大小: 4.51 KB | 发布时间: 2026-4-15 11:29

v1.0.0 最新 2026-4-15 11:29
PostThatLater v1.0.0 – Initial release

- Schedule and manage social media posts across multiple platforms via natural language.
- Query analytics, manage your queue, and publish posts immediately.
- Supports cross-posting, image uploads, and timezone-aware scheduling.
- Provides critical usage tips for secure and reliable posting.
- Requires API key setup for integration.

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

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

p2p_official_large
返回顶部