mirror of
https://github.com/smallevilbeast/ntchat.git
synced 2025-05-23 05:16:07 +08:00
26 lines
571 B
Markdown
26 lines
571 B
Markdown
## NtChat fastapi完整示例
|
||
|
||
通过fastapi的swagger在线文档可以很方便的管理NtChat接口
|
||

|
||
|
||
## 安装依赖
|
||
```bash
|
||
pip install -r requirements.txt
|
||
```
|
||
|
||
## 运行例子
|
||
```bash
|
||
python main.py
|
||
```
|
||
|
||
## 访问api在线文档
|
||
[http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs)
|
||
|
||
|
||
## 如何调用
|
||
|
||
可以使用requests库去访问接口
|
||
|
||
/client/create 是创建一个微信的实例,返回guid,标识实例的id, 后面所有的接口都要用到
|
||
|
||
/client/open 是打开并管理上微信实例 |