ntchat/fastapi_example
2022-09-23 18:19:54 +08:00
..
__init__.py 新增web接口完整例子 2022-08-29 17:02:06 +08:00
down.py 修复python3.6运行bug 2022-09-13 21:39:19 +08:00
exception.py 格式化代码 2022-08-29 17:48:33 +08:00
main.py 更新send_text_ui例子 2022-09-23 18:19:54 +08:00
mgr.py 修复fastapi退出例子 2022-09-04 17:47:20 +08:00
models.py fastapi添加修改备注接口 2022-09-20 09:29:09 +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 使用绝对路径 2022-09-13 21:43: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 是打开并管理上微信实例