返回顶部
c

clicksend点击发送

|

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

clicksend

ClickSend

通过托管认证访问 ClickSend API。发送短信、彩信和语音消息,管理联系人和列表,并跟踪消息投递状态。

快速开始

bash

获取账户信息


python < import urllib.request, os, json
req = urllib.request.Request(https://gateway.maton.ai/clicksend/v3/account)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

基础URL

https://gateway.maton.ai/clicksend/{native-api-path}

将 {native-api-path} 替换为实际的 ClickSend API 端点路径。网关将请求代理到 rest.clicksend.com 并自动注入您的认证信息。

认证

所有请求都需要在 Authorization 头中携带 Maton API 密钥:

Authorization: Bearer $MATONAPIKEY

环境变量: 将您的 API 密钥设置为 MATONAPIKEY:

bash
export MATONAPIKEY=YOURAPIKEY

获取您的 API 密钥

  1. 1. 登录或在 maton.ai 创建账户
  2. 前往 maton.ai/settings
  3. 复制您的 API 密钥

连接管理

在 https://ctrl.maton.ai 管理您的 ClickSend 连接。

列出连接

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://ctrl.maton.ai/connections?app=clicksend&status=ACTIVE)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

创建连接

bash
python < import urllib.request, os, json
data = json.dumps({app: clicksend}).encode()
req = urllib.request.Request(https://ctrl.maton.ai/connections, data=data, method=POST)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
req.add_header(Content-Type, application/json)
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

获取连接

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://ctrl.maton.ai/connections/{connection_id})
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

响应:
json
{
connection: {
connection_id: 37beee67-29f7-43b6-b0b2-5f0f7a5d6440,
status: ACTIVE,
creation_time: 2026-02-10T10:04:12.418030Z,
lastupdatedtime: 2026-02-10T10:06:17.059090Z,
url: https://connect.maton.ai/?session_token=...,
app: clicksend,
metadata: {}
}
}

删除连接

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://ctrl.maton.ai/connections/{connection_id}, method=DELETE)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

指定连接

如果您有多个 ClickSend 连接,请使用 Maton-Connection 头指定要使用的连接:

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://gateway.maton.ai/clicksend/v3/account)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
req.add_header(Maton-Connection, 37beee67-29f7-43b6-b0b2-5f0f7a5d6440)
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

如果省略,网关将使用默认(最早创建的)活动连接。

API 参考

响应格式

所有 ClickSend API 响应遵循以下结构:

json
{
http_code: 200,
response_code: SUCCESS,
response_msg: 结果描述,
data: { ... }
}



账户

获取账户信息

bash
GET /clicksend/v3/account

响应:
json
{
http_code: 200,
response_code: SUCCESS,
response_msg: 这是您的账户信息,
data: {
user_id: 672721,
username: user@example.com,
user_email: user@example.com,
balance: 2.005718,
user_phone: +18019234886,
userfirstname: John,
userlastname: Doe,
country: US,
defaultcountrysms: US,
timezone: America/Chicago,
_currency: {
currencynameshort: USD,
currencyprefixd: $
}
}
}



短信

发送短信

bash
POST /clicksend/v3/sms/send
Content-Type: application/json

{
messages: [
{
to: +15551234567,
body: 来自 ClickSend 的问候!,
source: api
}
]
}

参数:

字段类型描述
to字符串收件人电话号码(E.164 格式)
body
字符串 | 短信内容 |
| source | 字符串 | 来源标识(例如 api, sdk) |
| from | 字符串 | 发送者 ID(可选) |
| schedule | 整数 | 定时发送的 Unix 时间戳(可选) |
| custom_string | 字符串 | 自定义引用(可选) |

获取短信价格

bash
POST /clicksend/v3/sms/price
Content-Type: application/json

{
messages: [
{
to: +15551234567,
body: 测试消息,
source: api
}
]
}

短信历史记录

bash
GET /clicksend/v3/sms/history

查询参数:

参数描述
datefrom开始日期的 Unix 时间戳
dateto
结束日期的 Unix 时间戳 |
| page | 页码(默认:1) |
| limit | 每页结果数(默认:15) |

接收短信

bash
GET /clicksend/v3/sms/inbound

短信回执(投递报告)

bash
GET /clicksend/v3/sms/receipts

取消定时短信

bash
PUT /clicksend/v3/sms/{message_id}/cancel

取消所有定时短信

bash
PUT /clicksend/v3/sms/cancel-all



短信模板

列出模板

bash
GET /clicksend/v3/sms/templates

响应:
json
{
http_code: 200,
response_code: SUCCESS,
response_msg: 以下是您的模板。,
data: {
total: 1,
per_page: 15,
current_page: 1,
data: [
{
template_id: 632497,
body: 您好 {name},这是一条测试消息。,
template_name: 测试模板
}
]
}
}

创建模板

bash
POST /clicksend/v3/sms/templates
Content-Type: application/json

{
template_name: 欢迎消息,
body: 您好 {name},欢迎使用我们的服务!
}

更新模板

bash
PUT /clicksend/v3/sms/templates/{template_id}
Content-Type: application/json

{
template_name: 已更新模板,
body: 已更新的消息内容
}

删除模板

bash
DELETE /clicksend/v3/sms/templates/{template_id}



彩信

发送彩信

bash

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clicksend-1776419977 技能

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

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

通过命令行安装

skillhub install clicksend-1776419977

下载

⬇ 下载 clicksend v1.0.2(免费)

文件大小: 5.8 KB | 发布时间: 2026-4-17 18:25

v1.0.2 最新 2026-4-17 18:25
- Added a homepage link ("https://maton.ai") to the skill metadata.
- No other visible changes to functionality, documentation, or code.

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

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

p2p_official_large
返回顶部