aiobearychat.openapi.rtm_api
¶
RTM 相关 API.
auto generated by script at 2017-08-24 21:50:13.459796. don’t edit it.
-
class
aiobearychat.openapi.rtm_api.
RtmAPI
(requester: aiobearychat.abc.Requester, token: str, *, base_url: str, **kwargs)[源代码]¶ RTM 相关 API.
-
start
(**requester_params: typing.Any) → aiobearychat.sansio.Response[源代码]¶ 打开 RTM 连接会话.
官方文档地址:https://github.com/bearyinnovative/OpenAPI/blob/master/api/rtm.start.md
返回: response. 一个 aiobearychat.sansio.Response
实例返回类型: aiobearychat.sansio.Response
response.body
返回值示例:response.status 等于 200 时: { "ws_host": "wss://rtm.bearychat.com/nimbus/ws:xxx", "user": { "inactive": false, "role": "normal", "email": "support@bearyinnovative.com", "name": "BearyBot", "type": "assistant", "created": "2017-01-11T12:28:31.000+0000", "id": "=bwMkR", "avatars": { "small": null, "medium": null, "large": null }, "team_id": "=bw52O", "full_name": "倍洽小助手", "mobile": null, "profile": { "bio": null, "position": null, "skype": null } } }
-