Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

publer-apipubler API 文档

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

4,751

周安装

202

GitHub Stars

公开资料未说明

下载量

1,664
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:publer-api(publer API 文档)
来源仓库:https://github.com/gjeka/publer-api
安装命令:
openclaw skills install publer-api
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install publer-api

简介

辅助梳理 Publer API 接口文档与集成规范,提升开发效率。

  • 适用于前后端联调、OpenAPI 规范生成及字段命名校验场景。
  • 可帮助定义 endpoint、请求响应结构及错误码映射关系。
  • 安装命令:openclaw skills install publer-api,归属开发类别。
  • 生成文档时应基于实际接口样例而非假设性数据结构。

SKILL.md

name
publer-api
description
>

Publer API Skill

This skill enables you to interact with all Publer API endpoints.

Business plan required. The Publer API is only available to Business plan users.

Setup

Base URL: https://app.publer.com/api/v1

Required headers on almost every request:

Authorization: Bearer-API YOUR_API_KEY
Publer-Workspace-Id: YOUR_WORKSPACE_ID
Content-Type: application/json

Note: Bearer-API (not Bearer) is the correct format.

If the user hasn't provided their API key, ask for it before making any calls. Never hardcode or expose API keys.

API key scopes: workspaces, accounts, posts, media, analytics


Quick Reference: All Endpoints

AreaMethodEndpoint
UsersGET/users/me
WorkspacesGET/workspaces
AccountsGET/accounts
PostsGET/posts
Posts — Schedule/DraftPOST/posts/schedule
Posts — Publish NowPOST/posts/schedule/publish
Posts — UpdatePUT/posts/{id}
Posts — DeleteDELETE/posts
Job StatusGET/job_status/{job_id}
Media — ListGET/media
Media — Direct UploadPOST/media
Media — URL UploadPOST/media/from-url
Media OptionsGET/workspaces/{workspace_id}/media_options
Analytics — Charts ListGET/analytics/charts
Analytics — Chart DataGET/analytics/:account_id/chart_data
Analytics — Post InsightsGET/analytics/:account_id/post_insights
Analytics — Hashtag InsightsGET/analytics/:account_id/hashtag_insights
Analytics — Hashtag PostsGET/analytics/:account_id/hashtag_performing_posts
Analytics — Best TimesGET/analytics/:account_id/best_times
Analytics — MembersGET/analytics/members
Competitors — ListGET/competitors/:account_id
Competitors — AnalyticsGET/competitors/:account_id/analytics

For full request/response shapes, read references/api-reference.md.


Workflow

1. Identify the intent

Map the user's request to one or more API calls from the table above.

2. Gather required parameters

  • Workspace ID: Needed for most calls. If unknown, call GET /workspaces first.
  • Account IDs: Needed for post creation. If unknown, call GET /accounts.
  • Scheduled posts: scheduled_at must be ISO 8601 with timezone, at least 1 minute in the future.
  • Analytics: Most endpoints need from/to date range (YYYY-MM-DD). They are co-required.
  • Media: Must be uploaded first via /media or /media/from-url, then referenced by ID in posts.

3. Make the API call

Use the correct HTTP method and headers. POST/PUT use Content-Type: application/json. Media direct upload uses multipart/form-data.

4. Handle async operations

Post creation and URL media uploads are asynchronous:

  • Response returns { "success": true, "data": { "job_id": "..." } }
  • Poll GET /job_status/{job_id} until status is "complete" or "failed"
  • Check payload.failures even on "complete" — partial failures are possible

5. Interpret the response

  • 2xx — success. Parse and present relevant fields clearly.
  • 401 — ask user to verify API key and confirm Bearer-API format.
  • 403 — check required scope is enabled, and Publer-Workspace-Id header is present.
  • 404 — resource ID is wrong; confirm with user.
  • 422 — surface the errors[] array to user and ask them to correct input.
  • 429 — rate limited (100 req/2 min); wait for X-RateLimit-Reset, use exponential backoff.
  • 5xx — Publer server error; suggest retry.

Common Workflows

Schedule a post

  1. If workspace/account IDs unknown: GET /workspaces then GET /accounts
  2. POST /posts/schedule with state: "scheduled", network content, and scheduled_at per account
  3. Poll GET /job_status/{job_id} until complete
  4. Confirm back: platform(s), scheduled time, text preview

Publish immediately

Same as above but use POST /posts/schedule/publish and omit scheduled_at.

Cross-post with platform-specific content

Use multiple keys under networks with per-platform text/type:

"networks": {
  "facebook": { "type": "status", "text": "Longer Facebook copy..." },
  "twitter": { "type": "status", "text": "Short tweet #hashtag" },
  "linkedin": { "type": "status", "text": "Professional LinkedIn copy..." }
}

Upload and attach media

  1. POST /media (multipart) for direct upload, or POST /media/from-url for URL import
  2. Check validity object in response for network compatibility
  3. Reference media.id in the media[] array inside the network object when creating post

List and review scheduled posts

  1. GET /posts?state=scheduled
  2. Display as readable list: date, network, text preview
  3. Offer to edit (PUT /posts/{id}) or delete (DELETE /posts?post_ids[]=...) on request

Fetch analytics

  1. For account-level charts: GET /analytics/charts to get available IDs, then GET /analytics/:account_id/chart_data?chart_ids[]=...&from=...&to=...
  2. For per-post performance: GET /analytics/:account_id/post_insights?from=...&to=...
  3. For hashtag performance: GET /analytics/:account_id/hashtag_insights
  4. For best posting times: GET /analytics/:account_id/best_times?from=...&to=...

Competitor analysis

  1. GET /competitors/:account_id to list competitors
  2. GET /competitors/:account_id/analytics for aggregate metrics
  3. Use competitors=true&competitor_id=... on post insights and best times endpoints for deeper comparison

Key Notes & Edge Cases

  • Auth header format: Bearer-API YOUR_KEY — not Bearer
  • Workspace in header vs path: Most endpoints use Publer-Workspace-Id header. Exception: GET /workspaces/{workspace_id}/media_options uses workspace ID in the path.
  • /users/me and /workspaces do not require the workspace header.
  • Pagination: 0-based page param throughout. Post insights and hashtag insights return 10 per page.
  • Date format: ISO 8601 with timezone for timestamps; YYYY-MM-DD for analytics date ranges.
  • default network key: Use "default" as the network to apply same content to all accounts.
  • Threads: Cannot schedule for specific times via API.
  • Analytics data freshness: Metrics auto-sync ~every 24h. Not real-time.
  • Competitor sort_type: Lowercase asc/desc — unlike post/hashtag insights which use ASC/DESC.
  • reach field: May be omitted in members analytics and competitor analytics for unsupported networks — handle gracefully.

Reference Files

  • references/api-reference.md — Full endpoint docs with all request/response shapes, field enums, media specs, daily post limits, and error handling. Read this when you need exact field names, response shapes, or need to handle a case not covered above.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

80.47%
按下载量换算1,339

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills