mcpField
P
postiz

postiz

github.com/gitroomhq营销与增长5152 次安装1 周前更新
代码仓库

关于 postiz

Postiz 是用于安排社交媒体和聊天渠道发帖的 Skill,可通过 Postiz API 管理渠道、媒体和帖子。它涵盖渠道查询、媒体上传、帖子列表、排期与删除。

主要功能

  1. 01安排多个渠道的帖子
  2. 02查看已连接渠道和帖子
  3. 03查找下一个可用发布时段
  4. 04从文件或 URL 上传媒体
  5. 05删除已安排的帖子

适用场景

  1. 01规划多个社交渠道的发帖
  2. 02排期前检查渠道可用时段
  3. 03为定时帖子附加已上传媒体

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/gitroomhq/postiz-docs --skill postiz

安装后在 Claude Code 中输入/postiz确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

CODEOWNERS
README.md
LICENSE
.github/workflows/
docs-checks.yml
.idea/
.gitignore
copilot.data.migration.ask2agent.xml
copilot.data.migration.ask.xml
modules.xml
vcs.xml
new-postiz-docs.iml
copilot.data.migration.agent.xml
copilot.data.migration.edit.xml
php.xml
.vscode/
settings.json
cli/
analytics.mdx
authentication.mdx
clipping.mdx
integrations.mdx
media-upload.mdx
managing-posts.mdx
introduction.mdx
platform-examples.mdx
cloud/
codes-and-offers.mdx
downgrades.mdx
overview.mdx
plans.mdx
refunds-and-support.mdx
trial.mdx
limits.mdx
contributing/
developer-guide.mdx

详细介绍

Postiz 技能

Postiz 是一款用于安排社交媒体和聊天帖子的工具,支持 28+ 个渠道:

X、LinkedIn、LinkedIn Page、Reddit、Instagram、Facebook Page、Threads、YouTube、Google My Business、TikTok、Pinterest、Dribbble、Discord、Slack、Kick、Twitch、Mastodon、Bluesky、Lemmy、Farcaster、Telegram、Nostr、VK、Medium、Dev.to、Hashnode、WordPress、ListMonk

设置

  1. 获取 API 密钥:https://platform.postiz.com/settings
  2. 点击“Settings”
  3. 点击“Reveal”
  4. 设置环境变量:
    export POSTIZ_API_KEY="your-api-key"
    

获取所有已添加的渠道

curl -X GET "https://api.postiz.com/public/v1/integrations" \
  -H "Authorization: $POSTIZ_API_KEY"

获取某个渠道下一个可用时段

curl -X GET "https://api.postiz.com/public/v1/find-slot/:id" \
  -H "Authorization: $POSTIZ_API_KEY"

上传新文件(表单数据)

curl -X POST "https://api.postiz.com/public/v1/upload" \
  -H "Authorization: $POSTIZ_API_KEY" \
  -F "file=@/path/to/your/file.png"

从现有 URL 上传新文件

curl -X POST "https://api.postiz.com/public/v1/upload-from-url" \
  -H "Authorization: $POSTIZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/image.png"
  }'

帖子列表

curl -X GET "https://api.postiz.com/public/v1/posts?startDate=2024-12-14T08:18:54.274Z&endDate=2024-12-14T08:18:54.274Z&customer=optionalCustomerId" \
  -H "Authorization: $POSTIZ_API_KEY"

安排新帖子

不同渠道的设置可在此处找到: https://docs.postiz.com/public-api/introduction 位于左下角菜单中

安排新帖子时,如果附加媒体,必须先上传媒体,并使用上传后媒体的 URL。 上传 URL 必须包含:uploads.postiz.com。

curl -X POST "https://api.postiz.com/public/v1/posts" \
  -H "Authorization: $POSTIZ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "schedule",
  "date": "2024-12-14T10:00:00.000Z",
  "shortLink": false,
  "tags": [],
  "posts": [
    {
      "integration": {
        "id": "your-x-integration-id"
      },
      "value": [
        {
          "content": "Hello from the Postiz API! 🚀",
          "image": [{ "id": "img-123", "path": "https://uploads.postiz.com/photo.jpg" }]
        }
      ],
      "settings": {
        "__type": "provider name",
        rest of the settings
      }
    }
  ]
}'

删除帖子

curl -X DELETE "https://api.postiz.com/public/v1/posts/:id" \
  -H "Authorization: $POSTIZ_API_KEY"

评论

支持 Markdown