MeetingClient 类
用于管理 Teams 会议的客户端。
初始化 MeetingClient。
构造函数
MeetingClient(service_url: str, options: Client | ClientOptions | None = None, api_client_settings: ApiClientSettings | None = None)
参数
| 名称 | 说明 |
|---|---|
|
service_url
必需
|
API 调用的服务 URL。 |
|
options
|
可选客户端或 ClientOptions 实例。 如果未提供,将创建默认客户端。 默认值: None
|
|
api_client_settings
|
可选 API 客户端设置。 默认值: None
|
方法
| get_by_id |
检索会议信息,包括详细信息、组织者和对话。 |
| get_participant |
检索有关会议中特定参与者的信息。 |
| send_notification |
向参与者发送目标会议通知。 在完全成功时返回 None (HTTP 202)。 返回一个 MeetingNotificationResponse,其中包含部分成功(HTTP 207)失败详细信息。 |
get_by_id
检索会议信息,包括详细信息、组织者和对话。
async get_by_id(id: str) -> MeetingInfo
参数
| 名称 | 说明 |
|---|---|
|
id
必需
|
会议 ID。 |
返回
| 类型 | 说明 |
|---|---|
|
会议信息。 |
get_participant
检索有关会议中特定参与者的信息。
async get_participant(meeting_id: str, id: str, tenant_id: str) -> MeetingParticipant
参数
| 名称 | 说明 |
|---|---|
|
meeting_id
必需
|
会议 ID。 |
|
id
必需
|
用户 AAD 对象 ID。 |
|
tenant_id
必需
|
会议和用户的租户 ID。 |
返回
| 类型 | 说明 |
|---|---|
|
会议参与者信息。 |
send_notification
向参与者发送目标会议通知。
在完全成功时返回 None (HTTP 202)。 返回一个 MeetingNotificationResponse,其中包含部分成功(HTTP 207)失败详细信息。
async send_notification(meeting_id: str, params: MeetingNotificationParams) -> MeetingNotificationResponse | None
参数
| 名称 | 说明 |
|---|---|
|
meeting_id
必需
|
BASE64 编码的会议 ID。 |
|
params
必需
|
通知参数,包括收件人和图面。 |
返回
| 类型 | 说明 |
|---|---|
|
如果成功发送了所有通知,或具有按收件人失败详细信息的 MeetingNotificationResponse,则为“无”。 |