返回顶部
m

microsoft-teams微软Teams

|

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

microsoft-teams

Microsoft Teams

通过 Microsoft Graph 使用托管 OAuth 认证访问 Microsoft Teams API。管理团队、频道、消息、会议,并访问录制和转录内容。

快速开始

bash

列出用户加入的团队


python < import urllib.request, os, json
req = urllib.request.Request(https://gateway.maton.ai/microsoft-teams/v1.0/me/joinedTeams)
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/microsoft-teams/{native-api-path}

将 {native-api-path} 替换为实际的 Microsoft Graph API 端点路径。网关将请求代理到 graph.microsoft.com 并自动注入您的 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 管理您的 Microsoft Teams OAuth 连接。

列出连接

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://ctrl.maton.ai/connections?app=microsoft-teams&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: microsoft-teams}).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: fb0fdc4a-0b5a-40cf-8b92-3bdae848cde3,
status: ACTIVE,
creation_time: 2026-02-17T09:51:21.074601Z,
lastupdatedtime: 2026-02-17T09:51:34.323814Z,
url: https://connect.maton.ai/?session_token=...,
app: microsoft-teams,
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

指定连接

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

bash
python < import urllib.request, os, json
req = urllib.request.Request(https://gateway.maton.ai/microsoft-teams/v1.0/me/joinedTeams)
req.addheader(Authorization, fBearer {os.environ[MATONAPI_KEY]})
req.add_header(Maton-Connection, fb0fdc4a-0b5a-40cf-8b92-3bdae848cde3)
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

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

API 参考

团队

列出已加入的团队

bash
GET /microsoft-teams/v1.0/me/joinedTeams

响应:
json
{
@odata.context: https://graph.microsoft.com/v1.0/$metadata#teams,
@odata.count: 1,
value: [
{
id: b643f103-870d-4f98-a23d-e6f164fae33e,
displayName: carvedai.com,
description: null,
isArchived: false,
tenantId: cb83c3f9-6d16-4cf3-bd8c-ab16b37932f9
}
]
}

获取团队

bash
GET /microsoft-teams/v1.0/teams/{team-id}

频道

列出频道

bash
GET /microsoft-teams/v1.0/teams/{team-id}/channels

响应:
json
{
@odata.context: https://graph.microsoft.com/v1.0/$metadata#teams(...)/channels,
@odata.count: 1,
value: [
{
id: 19:9fwtZjo3IM0D8bLdQqR-_oMFw1eUDlzWjPfIhNGhVd41@thread.tacv2,
createdDateTime: 2026-02-16T20:09:27.254Z,
displayName: General,
description: null,
email: carvedai.com473@carvedai.com,
membershipType: standard,
isArchived: false
}
]
}

列出私人频道

bash
GET /microsoft-teams/v1.0/teams/{team-id}/channels?$filter=membershipType eq private

获取频道

bash
GET /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}

创建频道

bash
POST /microsoft-teams/v1.0/teams/{team-id}/channels
Content-Type: application/json

{
displayName: New Channel,
description: Channel description,
membershipType: standard
}

响应:
json
{
id: 19:3b3361df822044558a062bb1a4ac8357@thread.tacv2,
createdDateTime: 2026-02-17T20:24:33.9284462Z,
displayName: Maton Test Channel,
description: Channel created by Maton integration test,
membershipType: standard,
isArchived: false
}

更新频道

bash
PATCH /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}
Content-Type: application/json

{
description: Updated description
}

成功时返回 204 No Content。注意:默认的“General”频道无法更新。

删除频道

bash
DELETE /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}

成功时返回 204 No Content。

频道成员

列出频道成员

bash
GET /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/members

响应:
json
{
@odata.count: 1,
value: [
{
@odata.type: #microsoft.graph.aadUserConversationMember,
id: MCMjMiMj...,
roles: [owner],
displayName: Kevin Kim,
userId: 5f56d55b-2ffb-448d-982a-b52547431f71,
email: richard@carvedai.com
}
]
}

消息

列出频道消息

bash
GET /microsoft-teams/v1.0/teams/{team-id}/channels/{channel-id}/messages

向频道发送消息

bash
POST /

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 microsoft-teams-1776420083 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 microsoft-teams-1776420083 技能

通过命令行安装

skillhub install microsoft-teams-1776420083

下载

⬇ 下载 microsoft-teams v1.0.0(免费)

文件大小: 5.96 KB | 发布时间: 2026-4-17 18:10

v1.0.0 最新 2026-4-17 18:10
Initial release: Microsoft Teams API skill integration via Maton gateway.

- Manage teams, channels, messages, and meetings with secure OAuth via Microsoft Graph API.
- Full API documentation for listing, creating, updating, and deleting teams, channels, and messages.
- Detailed instructions for OAuth connection management and API key setup.
- Supports multiple Microsoft Teams connections via Maton-Connection header.
- Examples in Python for all major API actions.

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

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

p2p_official_large
返回顶部