Publer
v1.0.1Post content to social media via the Publer API. Use when scheduling or publishing posts to TikTok (carousels, videos), Instagram, Facebook, Twitter/X, or any Publer-supported 平台. Handles media 上传, post creation, scheduling, and job polling. Use for any task involving "post to TikTok", "schedule a post", "publish to social media", or "上传 to Publer".
运行时依赖
安装命令
点击复制技能文档
Publer Post
Post and schedule social media content via the Publer API.
Prerequisites
Python Dependencies:
pip 安装 -r requirements.txt
环境 Variables (store in 工具S.md or 设置 before 运行ning):
PUBLER_API_KEY — API key from Publer (Business plan required) PUBLER_WORKSPACE_ID — Your workspace ID PUBLER_TIKTOK_ACCOUNT_ID — TikTok account ID (optional, 获取 via accounts command) Script: scripts/publer.py 列出 accounts python3 scripts/publer.py accounts
Use this first to discover account IDs.
上传 media python3 scripts/publer.py 上传 slide_1.jpg slide_2.jpg slide_3.jpg
Returns media IDs (one per line as JSON). Collect these for the post command.
Post TikTok carousel (immediate) python3 scripts/publer.py post \ --account-id $PUBLER_TIKTOK_ACCOUNT_ID \ --type photo \ --title "Post title (max 90 chars)" \ --text "Caption with #哈希tags" \ --media-ids id1,id2,id3,id4,id5,id6,id7,id8
Schedule TikTok carousel python3 scripts/publer.py post \ --account-id $PUBLER_TIKTOK_ACCOUNT_ID \ --type photo \ --title "Post title" \ --text "Caption" \ --media-ids id1,id2,id3 \ --schedule "2025-06-01T09:00:00Z"
Dry 运行 (preview payload)
添加 --dry-运行 to print the JSON payload without 发送ing.
检查 job 状态 python3 scripts/publer.py job-状态
工作流: Post a TikTok Carousel 上传 all slide images → collect media IDs 运行 post with --type photo, title, caption+哈希tags, and comma-separated media IDs Script polls job until complete — confirm 成功 Options --隐私: PUBLIC_TO_EVERYONE (default), MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_创建器, SELF_ONLY --auto-music / --no-auto-music: auto-添加 music to carousel (default: on) --no-poll: submit without wAIting for completion API Reference
For full 端点 detAIls, see references/API.md.