|
通过托管的OAuth认证访问Zoho Bigin API。支持对联系人、公司、管道和产品进行完整的增删改查操作。
bash
https://gateway.maton.ai/zoho-bigin/bigin/v2/{endpoint}
该网关将请求代理到 www.zohoapis.com/bigin/v2,并自动注入您的OAuth令牌。
所有请求都需要在Authorization头中包含Maton API密钥:
Authorization: Bearer $MATONAPIKEY
环境变量: 将您的API密钥设置为 MATONAPIKEY:
bash
export MATONAPIKEY=YOURAPIKEY
在 https://ctrl.maton.ai 管理您的Zoho Bigin OAuth连接。
bash
python <
req = urllib.request.Request(https://ctrl.maton.ai/connections?app=zoho-bigin&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: zoho-bigin}).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: zoho-bigin,
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
如果您有多个Zoho Bigin连接,请使用 Maton-Connection 头指定使用哪个连接:
bash
python <
req = urllib.request.Request(https://gateway.maton.ai/zoho-bigin/bigin/v2/Contacts?fields=FirstName,LastName,Email)
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
如果省略,网关将使用默认(最早)的活动连接。
Zoho Bigin将数据组织成模块。可用的模块包括:
| 模块 | API名称 | 描述 |
|---|---|---|
| 联系人 | Contacts | 个人 |
| 公司 |
bash
GET /zoho-bigin/bigin/v2/{moduleapiname}?fields={field1},{field2}
查询参数:
| 参数 | 类型 | 描述 |
|---|---|---|
| fields | 字符串 | 必需。 要检索的字段API名称,以逗号分隔 |
| sort_order |
示例 - 列出联系人:
bash
python <
req = urllib.request.Request(https://gateway.maton.ai/zoho-bigin/bigin/v2/Contacts?fields=FirstName,LastName,Email,Phone)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
响应:
json
{
data: [
{
First_Name: Ted,
Email: support@bigin.com,
Last_Name: Watson,
id: 7255024000000596045
}
],
info: {
per_page: 200,
count: 1,
page: 1,
more_records: false
}
}
示例 - 列出公司(账户):
bash
python <
req = urllib.request.Request(https://gateway.maton.ai/zoho-bigin/bigin/v2/Accounts?fields=Account_Name,Website)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
bash
GET /zoho-bigin/bigin/v2/{moduleapiname}/{record_id}
示例:
bash
python <
req = urllib.request.Request(https://gateway.maton.ai/zoho-bigin/bigin/v2/Contacts/7255024000000596045)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
bash
POST /zoho-bigin/bigin/v2/{moduleapiname}
Content-Type: application/json
{
data: [
{
fieldapiname: value
}
]
}
各模块必填字段:
| 模块 | 必填字段 |
|---|---|
| 联系人 | LastName |
| 账户 |
示例 - 创建联系人:
bash
python <
data = json.dumps({
data: [{
Last_Name: Smith,
First_Name: John,
Email: john.smith@example.com,
Phone: +1-555-0123
}]
}).encode()
req = urllib.request.Request(https://gateway.maton
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 zoho-bigin-1776351502 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 zoho-bigin-1776351502 技能
skillhub install zoho-bigin-1776351502
文件大小: 5.53 KB | 发布时间: 2026-4-17 15:19