返回顶部
s

square-post

|

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

square-post

# Square Post Skill ## Overview Post text content to Binance Square. --- ## API: Add Content ### Method: POST **URL**: ``` https://www.binance.com/bapi/composite/v1/public/pgc/openApi/content/add ``` **Request Headers**: | Header | Required | Description | |--------|----------|-------------| | X-Square-OpenAPI-Key | Yes | Square OpenAPI Key | | Content-Type | Yes | `application/json` | | clienttype | Yes | `binanceSkill` | **Request Body**: | Field | Type | Required | Description | |-------|------|----------|-------------| | bodyTextOnly | string | Yes | Post content text (supports #hashtags) | ### Example Request ```bash curl -X POST 'https://www.binance.com/bapi/composite/v1/public/pgc/openApi/content/add' \ -H 'X-Square-OpenAPI-Key: your_api_key' \ -H 'Content-Type: application/json' \ -H 'clienttype: binanceSkill' \ -d '{ "bodyTextOnly": "BTC looking bullish today!" }' ``` ### Response Example ```json { "code": "000000", "message": null, "data": { "id": "content_id_here" } } ``` ### Response Fields | Field | Type | Description | |-------|------|-------------| | code | string | `"000000"` = success | | message | string | Error message (null on success) | | data.id | string | Created content ID | ### Post URL Format On success, construct the post URL: ``` https://www.binance.com/square/post/{id} ``` Example: If `data.id` is `298177291743282`, the post URL is: ``` https://www.binance.com/square/post/298177291743282 ``` --- ## Error Handling | Code | Description | |------|-------------| | 000000 | Success | | 10004 | Network error. Please try again | | 10005 | Only allowed for users who have completed identity verification | | 10007 | Feature unavailable | | 20002 | Detected sensitive words | | 20013 | Content length is limited | | 20020 | Publishing empty content is not supported | | 20022 | Detected sensitive words (with risk segments) | | 20041 | Potential security risk with the URL | | 30004 | User not found | | 30008 | Banned for violating platform guidelines | | 220003 | API Key not found | | 220004 | API Key expired | | 220009 | Daily post limit exceeded for OpenAPI | | 220010 | Unsupported content type | | 220011 | Content body must not be empty | | 2000001 | Account permanently blocked from posting | | 2000002 | Device permanently blocked from posting | --- ## Authentication ### Required Header | Header | Required | Description | |--------|----------|-------------| | X-Square-OpenAPI-Key | Yes | API key for Square posting | --- ## Security ### Never Display Full Keys When showing credentials to users: - **X-Square-OpenAPI-Key**: Show first 5 + last 4 characters: `abc12...xyz9` ### Listing Accounts When listing accounts, show names and description only — never full keys: ``` Accounts: * default (Default account for Square posting) ``` --- ## Agent Behavior 1. **Check key before API calls**: Verify that X-Square-OpenAPI-Key is configured and not the placeholder `your_api_key` 2. **Prompt for key if missing**: If key is not configured, ask user to provide their API Key first 3. **Prompt for content if missing**: If user triggers posting but doesn't provide specific content, ask what they want to post 4. **Never display full keys**: Only show first 5 + last 4 characters (e.g., `abc12...xyz9`) 5. **Store provided keys**: When user provides a new key, update the Accounts section in this file 6. **Optimize content before posting**: - Polish user's raw input for better readability - Show optimized content and ask user to choose: use optimized version or post original text 7. **Return post URL on success**: After successful post, return the URL `https://www.binance.com/square/post/{id}` 8. **Handle missing id**: If code is `000000` but `data.id` is empty or missing, inform user that post may have succeeded but URL is unavailable, suggest checking Square page manually --- ## Notes 1. Only pure text posts are supported currently 2. Check daily post limit to avoid 220009 error

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 binance-square-post-1776099670 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 binance-square-post-1776099670 技能

通过命令行安装

skillhub install binance-square-post-1776099670

下载 Zip 包

⬇ 下载 square-post v1.0.0

文件大小: 4.83 KB | 发布时间: 2026-4-14 14:10

v1.0.0 最新 2026-4-14 14:10
- Initial release of the square-post skill for posting pure text content to Binance Square.
- Supports authentication via X-Square-OpenAPI-Key with secure display of credentials.
- Auto-prompts users for missing API key or post content.
- Polishes user input and provides an option to use optimized or original text before posting.
- Returns a direct post URL upon successful posting.
- Comprehensive error handling and messaging based on API response codes.

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

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

p2p_official_large
返回顶部