|
通过托管OAuth认证访问JotForm API。创建和管理表单、检索提交数据以及管理Webhook。
bash
https://gateway.maton.ai/jotform/{native-api-path}
将{native-api-path}替换为实际的JotForm API端点路径。网关会将请求代理至api.jotform.com,并自动注入您的API密钥。
所有请求均需在Authorization标头中包含Maton API密钥:
Authorization: Bearer $MATONAPIKEY
环境变量: 将您的API密钥设置为MATONAPIKEY:
bash
export MATONAPIKEY=YOURAPIKEY
在https://ctrl.maton.ai管理您的JotForm连接。
bash
python <
req = urllib.request.Request(https://ctrl.maton.ai/connections?app=jotform&status=ACTIVE)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
bash
python <
data = json.dumps({app: jotform}).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 <
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=...,
app: jotform,
metadata: {}
}
}
在浏览器中打开返回的url以完成OAuth授权。
bash
python <
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
如果您有多个JotForm连接,请使用Maton-Connection标头指定要使用的连接:
bash
python <
req = urllib.request.Request(https://gateway.maton.ai/jotform/user/forms)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
req.add_header(Maton-Connection, 21fd90f9-5935-43cd-b6c8-bde9d915ca80)
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
如果省略,网关将使用默认(最早创建的)活跃连接。
bash
GET /jotform/user
GET /jotform/user/forms?limit=20
GET /jotform/user/submissions?limit=20
GET /jotform/user/usage
bash
GET /jotform/form/{formId}
bash
GET /jotform/form/{formId}/questions
bash
GET /jotform/form/{formId}/submissions?limit=20
带筛选条件:
bash
GET /jotform/form/{formId}/submissions?filter={created_at:gt:2024-01-01}
bash
POST /jotform/user/forms
Content-Type: application/json
{
properties: {title: 联系表单},
questions: {
1: {type: control_textbox, text: 姓名, name: name},
2: {type: control_email, text: 邮箱, name: email}
}
}
bash
DELETE /jotform/form/{formId}
bash
GET /jotform/submission/{submissionId}
bash
DELETE /jotform/submission/{submissionId}
bash
GET /jotform/form/{formId}/webhooks
POST /jotform/form/{formId}/webhooks
DELETE /jotform/form/{formId}/webhooks/{webhookIndex}
json
{field:gt:value} // 大于
{field:lt:value} // 小于
{field:eq:value} // 等于
javascript
const response = await fetch(
https://gateway.maton.ai/jotform/user/forms?limit=10,
{
headers: {
Authorization: Bearer ${process.env.MATONAPIKEY}
}
}
);
python
import os
import requests
response = requests.get(
https://gateway.maton.ai/jotform/user/forms,
headers={Authorization: fBearer {os.environ[MATONAPIKEY]}},
params={limit: 10}
)
| 状态码 | 含义 |
|---|---|
| 400 | 缺少JotForm连接 |
| 401 |
bash
echo $MATONAPIKEY
bash
python <
req = urllib.request.Request(https://ctrl.maton.ai/connections)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 jotform-1776371281 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 jotform-1776371281 技能
skillhub install jotform-1776371281
文件大小: 3.85 KB | 发布时间: 2026-4-17 15:28