返回顶部
z

zoho-calendarZoho日历

|

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

zoho-calendar

Zoho Calendar

通过托管的OAuth认证访问Zoho Calendar API。支持完整的CRUD操作管理日历和事件,包括重复事件和与会者管理。

快速开始

bash

列出日历


python < import urllib.request, os, json
req = urllib.request.Request(https://gateway.maton.ai/zoho-calendar/api/v1/calendars)
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-calendar/api/v1/{endpoint}

该网关将请求代理到 calendar.zoho.com/api/v1,并自动注入您的OAuth令牌。

认证

所有请求都需要在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 管理您的Zoho Calendar OAuth连接。

列出连接

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://ctrl.maton.ai/connections?app=zoho-calendar&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-calendar}).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: 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-calendar,
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 Calendar连接,请使用 Maton-Connection 头指定要使用的连接:

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://gateway.maton.ai/zoho-calendar/api/v1/calendars)
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

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

API参考

日历

列出日历

bash
GET /zoho-calendar/api/v1/calendars

示例:

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

响应:
json
{
calendars: [
{
uid: fda9b0b4ad834257b622cb3dc3555727,
name: 我的日历,
color: #8cbf40,
textcolor: #FFFFFF,
timezone: PST,
isdefault: true,
category: own,
privilege: owner
}
]
}

获取日历详情

bash
GET /zoho-calendar/api/v1/calendars/{calendar_uid}

示例:

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

创建日历

bash
POST /zoho-calendar/api/v1/calendars?calendarData={json}

必填字段:

  • - name - 日历名称(最多50个字符)
  • color - 十六进制颜色代码(例如 #FF5733)

可选字段:

  • - textcolor - 文本颜色十六进制代码
  • description - 日历描述(最多1000个字符)
  • timezone - 日历时区
  • include_infreebusy - 显示为忙碌/空闲(布尔值)
  • public - 可见性级别(disable、freebusy 或 view)

示例:

bash
python < import urllib.request, os, json, urllib.parse

calendarData = {
name: 工作日历,
color: #FF5733,
textcolor: #FFFFFF,
description: 我的工作日历
}

url = fhttps://gateway.maton.ai/zoho-calendar/api/v1/calendars?calendarData={urllib.parse.quote(json.dumps(calendarData))}
req = urllib.request.Request(url, method=POST)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

响应:
json
{
calendars: [
{
uid: 86fb9745076e4672ae4324f05e1f5393,
name: 工作日历,
color: #FF5733,
textcolor: #FFFFFF
}
]
}

删除日历

bash
DELETE /zoho-calendar/api/v1/calendars/{calendar_uid}

示例:

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

响应:
json
{
calendars: [
{
uid: 86fb9745076e4672ae4324f05e1f5393,
calstatus: deleted
}
]
}

事件

列出事件

bash
GET /zoho-calendar/api/v1/calendars/{calendar_uid}/events?range={json}

查询参数:

参数类型描述
range

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 zoho-calendar-1776351442 技能

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

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

通过命令行安装

skillhub install zoho-calendar-1776351442

下载

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

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

v1.0.3 最新 2026-4-17 15:14
- Added a clawdbot metadata block specifying emoji and required environment variable (MATON_API_KEY) in SKILL.md.
- No changes to API or user-facing functionality. Documentation update only.

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

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

p2p_official_large
返回顶部