返回顶部
z

zoho-peopleZoho人员

|

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

zoho-people

Zoho People

通过托管的OAuth认证访问Zoho People API。支持对员工、部门、职位、考勤、请假以及自定义HR表单进行完整的增删改查操作。

快速开始

bash

列出所有员工


python < import urllib.request, os, json
req = urllib.request.Request(https://gateway.maton.ai/zoho-people/people/api/forms/employee/getRecords?sIndex=1&limit=10)
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/zoho-people/{原生API路径}

将{原生API路径}替换为实际的Zoho People API端点路径。网关会将请求代理到people.zoho.com并自动注入您的OAuth令牌。

认证

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

Authorization: Bearer $MATONAPIKEY

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

bash
export MATONAPIKEY=您的API密钥

获取您的API密钥

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

连接管理

在https://ctrl.maton.ai管理您的Zoho People OAuth连接。

列出连接

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://ctrl.maton.ai/connections?app=zoho-people&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: zoho-people}).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: 7d11ea2e-c580-43fe-bc56-d9d4765b9bc6,
status: ACTIVE,
creation_time: 2026-02-06T07:42:07.681370Z,
lastupdatedtime: 2026-02-06T07:46:12.648445Z,
url: https://connect.maton.ai/?session_token=...,
app: zoho-people,
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

指定连接

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

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://gateway.maton.ai/zoho-people/people/api/forms)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
req.add_header(Maton-Connection, 7d11ea2e-c580-43fe-bc56-d9d4765b9bc6)
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

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

API参考

表单操作

列出所有表单

获取Zoho People账户中所有可用表单的列表。

bash
GET /zoho-people/people/api/forms

示例:

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

响应:
json
{
response: {
result: [
{
componentId: 943596000000035679,
iscustom: false,
displayName: Employee,
formLinkName: employee,
PermissionDetails: {
Add: 3,
Edit: 3,
View: 3
},
isVisible: true,
viewDetails: {
view_Id: 943596000000035705,
viewName: PEmployeeView
}
}
],
message: Data fetched successfully,
status: 0
}
}

员工操作

列出员工(批量记录)

bash
GET /zoho-people/people/api/forms/employee/getRecords?sIndex={起始索引}&limit={数量}

查询参数:

参数类型默认值描述
sIndex整数1起始索引(从1开始)
limit
整数 | 200 | 记录数量(最大200) |
| SearchColumn | 字符串 | - | EMPLOYEEID 或 EMPLOYEEMAILALIAS |
| SearchValue | 字符串 | - | 要搜索的值 |
| modifiedtime | 长整数 | - | 修改记录的时间戳(毫秒) |

示例:

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://gateway.maton.ai/zoho-people/people/api/forms/employee/getRecords?sIndex=1&limit=10)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

响应:
json
{
response: {
result: [
{
943596000000294355: [
{
FirstName: Christopher,
LastName: Brown,
EmailID: christopherbrown@zylker.com,
EmployeeID: S20,
Department: Management,
Designation: Administration,
Employeestatus: Active,
Gender: Male,
Dateofbirth: 02-Feb-1987,
Zoho_ID: 943596000000294355
}
]
}
],
message: Data fetched successfully,
status: 0
}
}

列出员工(基于视图)

bash
GET /zoho-people/api/forms/{视图名称}/records?rec_limit={数量}

示例:

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://gateway.maton.ai/zoho-people/api/forms/PEmployeeView/records?reclimit=10)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

按ID搜索员工

bash
GET /zoho-people/people/api/forms/employee/getRecords?SearchColumn=EMPLOYEEID&SearchValue={员工ID}

示例:

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://gateway.maton.ai/zoho-people/people/api/forms/employee/getRecords?SearchColumn=EMPLOYEEID&SearchValue=S20)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 zoho-people-1776351387 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 zoho-people-1776351387 技能

通过命令行安装

skillhub install zoho-people-1776351387

下载

⬇ 下载 zoho-people v1.0.3(免费)

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

v1.0.3 最新 2026-4-17 15:47
- Added a new `clawdbot` metadata block to the skill manifest, specifying an emoji and an environment variable requirement for `MATON_API_KEY`.
- No changes to code or API functionality; documentation only update.

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

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

p2p_official_large
返回顶部