ntchat/fastapi_example
2022-09-07 17:58:15 +08:00
..
__init__.py 新增web接口完整例子 2022-08-29 17:02:06 +08:00
down.py 新增web接口完整例子 2022-08-29 17:02:06 +08:00
exception.py 格式化代码 2022-08-29 17:48:33 +08:00
main.py 修复fastapi_example的get_contacts错误 2022-09-07 17:58:15 +08:00
mgr.py 修复fastapi退出例子 2022-09-04 17:47:20 +08:00
models.py 新增退出群接口 2022-08-30 15:09:53 +08:00
README.md 新增web接口完整例子 2022-08-29 17:02:06 +08:00
requirements.txt 新增web接口完整例子 2022-08-29 17:02:06 +08:00
utils.py 新增web接口完整例子 2022-08-29 17:02:06 +08:00
xdg.py 新增web接口完整例子 2022-08-29 17:02:06 +08:00

NtChat fastapi完整示例

通过fastapi的swagger在线文档可以很方便的管理NtChat接口 vfazT0.jpg

安装依赖

pip install -r requirements.txt

运行例子

python main.py

访问api在线文档

http://127.0.0.1:8000/docs

如何调用

可以使用requests库去访问接口

/client/create 是创建一个微信的实例返回guid标识实例的id, 后面所有的接口都要用到

/client/open 是打开并管理上微信实例