返回顶部
j

jef1testjef1测试

|

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

jef1test

API 网关

通过托管 OAuth 连接直接访问第三方 API 的透传代理,由 Maton 提供。API 网关允许您直接调用原生 API 端点。

快速开始

bash

原生 Slack API 调用


python < import urllib.request, os, json
data = json.dumps({channel: C0123456, text: 来自网关的问候!}).encode()
req = urllib.request.Request(https://gateway.maton.ai/slack/api/chat.postMessage, 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

基础 URL

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

将 {app} 替换为服务名称,将 {native-api-path} 替换为实际的 API 端点路径。

重要提示:URL 路径必须以连接的应用程序名称开头(例如 /google-mail/...)。此前缀告诉网关使用哪个应用程序连接。例如,原生 Gmail API 路径以 gmail/v1/ 开头,因此完整路径看起来像 /google-mail/gmail/v1/users/me/messages。

身份验证

所有请求都需要在 Authorization 标头中包含 Maton API 密钥:

Authorization: Bearer $MATONAPIKEY

API 网关会自动为目标服务注入相应的 OAuth 令牌。

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

bash
export MATONAPIKEY=YOURAPIKEY

获取您的 API 密钥

  1. 1. 在 maton.ai 登录或创建账户
  2. 前往 maton.ai/settings
  3. 点击 API 密钥部分右侧的复制按钮进行复制

连接管理

连接管理使用单独的基础 URL:https://ctrl.maton.ai

列出连接

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

查询参数(可选):

  • - app - 按服务名称筛选(例如 slack、hubspot、salesforce)
  • status - 按连接状态筛选(ACTIVE、PENDING、FAILED)

响应:
json
{
connections: [
{
connection_id: 21fd90f9-5935-43cd-b6c8-bde9d915ca80,
status: ACTIVE,
creation_time: 2025-12-08T07:20:53.488460Z,
lastupdatedtime: 2026-01-31T20:03:32.593153Z,
url: https://connect.maton.ai/?session_token=5e9...,
app: slack,
method: OAUTH2,
metadata: {}
}
]
}

创建连接

bash
python < import urllib.request, os, json
data = json.dumps({app: slack}).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

请求体:

  • - app(必需)- 服务名称(例如 slack、notion)
  • method(可选)- 连接方法(API_KEY、BASIC、OAUTH1、OAUTH2、MCP)

获取连接

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: 21fd90f9-5935-43cd-b6c8-bde9d915ca80,
status: ACTIVE,
creation_time: 2025-12-08T07:20:53.488460Z,
lastupdatedtime: 2026-01-31T20:03:32.593153Z,
url: https://connect.maton.ai/?session_token=5e9...,
app: slack,
metadata: {}
}
}

在浏览器中打开返回的 URL 以完成 OAuth。

删除连接

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

指定连接

如果您有同一应用程序的多个连接,可以通过添加包含连接 ID 的 Maton-Connection 标头来指定要使用的连接:

bash
python < import urllib.request, os, json
data = json.dumps({channel: C0123456, text: 你好!}).encode()
req = urllib.request.Request(https://gateway.maton.ai/slack/api/chat.postMessage, data=data, method=POST)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
req.add_header(Content-Type, application/json)
req.add_header(Maton-Connection, 21fd90f9-5935-43cd-b6c8-bde9d915ca80)
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

如果省略,网关将使用该应用程序的默认(最旧)活动连接。

支持的服务

服务应用名称代理的基础 URL
ActiveCampaignactive-campaign{account}.api-us1.com
Acuity Scheduling
acuity-scheduling | acuityscheduling.com | | Airtable | airtable | api.airtable.com | | Apollo | apollo | api.apollo.io | | Asana | asana | app.asana.com | | Attio | attio | api.attio.com | | Basecamp | basecamp | 3.basecampapi.com | | Baserow | baserow | api.baserow.io | | beehiiv | beehiiv | api.beehiiv.com | | Box | box | api.box.com | | Brevo | brevo | api.brevo.com | | Brave Search | brave-search | api.search.brave.com | | Buffer | buffer | api.buffer.com | | Calendly | calendly | api.calendly.com | | Cal.com | cal-com | api.cal.com | | CallRail | callrail | api.callrail.com | | Chargebee | chargebee | {subdomain}.chargebee.com | | ClickFunnels | clickfunnels | {subdomain}.myclickfunnels.com | | ClickSend | clicksend | rest.clicksend.com | | ClickUp | clickup | api.clickup.com | | Clockify | clockify | api.clockify.me | | Coda | coda | coda.io | | Confluence | confluence | api.atlassian.com | | CompanyCam | companycam | api.companycam.com | | Cognito Forms | cognito-forms | www.cognitoforms.com | | Constant Contact | constant-contact | api.cc.email | | Dropbox | dropbox | api.dropboxapi.com | | Dropbox Business | dropbox-business | api.dropboxapi.com | | ElevenLabs | elevenlabs | api.eleven

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 jef1test-1776198242 技能

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

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

通过命令行安装

skillhub install jef1test-1776198242

下载

⬇ 下载 jef1test v1.0.0(免费)

文件大小: 9.71 KB | 发布时间: 2026-4-17 15:07

v1.0.0 最新 2026-4-17 15:07
Initial release of jef1test, a unified API gateway for managing and interacting with 100+ external services through Maton.ai.

- Provides secure, managed OAuth connections for Google Workspace, Microsoft 365, Slack, GitHub, Notion, Airtable, HubSpot, and more.
- Allows direct passthrough to native third-party API endpoints using a single API key and Maton's gateway.
- Includes endpoints and guides for listing, creating, getting, or deleting service connections.
- Connection access is scoped to explicit user authorizations; the Maton API key alone does not grant access.
- Comprehensive documentation for setup, authentication, connection management, and supported service list.

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

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

p2p_official_large
返回顶部