TGTGInsighttelegram intelligenceLIVE / telegram public index
← 蛟龙
蛟龙 avatar

TGINSIGHT POST

Post #166

@jiao_long

蛟龙

Views41,700帖子阅读量
发布8月27日2021/08/27 03:06
Post content

帖子内容

OpenApi使用指南 1. 在系统设置 -> 应用设置 -> 添加应用,权限目前支持5个模块,可以选择多个模块。选择一个模块之后,可读写此模块的所有接口。 2. 使用生成的 client_id 和 client_secret 请求获取token接口 http://localhost:5700/open/auth/token?client_id=xxxxxx&client_secret=xxxxxxxx 3. 上面接口返回的token有效期为30天,可用于请求青龙的接口 curl 'http://localhost:5700/open/envs?searchValue=&t=1630032278171' -H 'Authorization: Bearer 接口返回的token' 4. openapi的接口与系统正常接口的区别就是青龙里的是/api/envs,openapi是/open/envs,即就是青龙接口中的api换成open 6. 此功能支持青龙2.9+,更新时需要执行一次ql check 使用指南|项目地址|赞助支持