aiobearychat.openapi.vchannel_api
¶
聊天会话相关 API.
auto generated by script at 2017-08-24 21:50:13.459796. don’t edit it.
-
class
aiobearychat.openapi.vchannel_api.
VchannelAPI
(requester: aiobearychat.abc.Requester, token: str, *, base_url: str, **kwargs)[源代码]¶ 聊天会话相关 API.
-
info
(vchannel_id: str, **requester_params: typing.Any) → aiobearychat.sansio.Response[源代码]¶ 返回指定聊天会话的完整信息。
官方文档地址:https://github.com/bearyinnovative/OpenAPI/blob/master/api/vchannel.info.md
参数: vchannel_id ( str
) – 聊天会话 id (示例:=bw52O
)返回: response. 一个 aiobearychat.sansio.Response
实例返回类型: aiobearychat.sansio.Response
response.body
返回值示例:response.status 等于 200 时: // Channel { "private": false, "general": true, "latest_ts": 1486367046281, "uid": "=bw52O", "name": "所有人", "is_member": false, "is_active": true, "type": "normal", "topic": null, "member_uids": [ "=bw52O" ], "vchannel_id": "=bw52O", "id": "=bw52O", "team_id": "=bw52O" } // SessionChannel { "latest_ts": "1489242467694", "name": "临时讨论组名称", "is_member": true, "is_active": true, "type": "session", "member_uids": [ "=bw52O" ], "vchannel_id": "=bw52O", "id": "=bw52O", "team_id": "=bw52O" } // P2PChannel { "id": "=bw52O", "team_id": "=bw52O", "vchannel_id": "=bw52O", "type": "p2p", "is_active": true, "is_member": true, "member_uids": [ "=bw52O", "=bw52P" ], "latest_ts": 1485238998284 }
-