Trojan WebApi对接
功能:TrojanController
本章节重点为Trojan的获取节点与用户信息
注意
节点后端与面板使用的时间误差不应该超过5分钟,否则API授权验证失败
使用WebApi后,用户设置中的节点设置信息将不再采用,而是统一获取节点的配置信息;用户的个人配置信息仅适用于DB版本
获取节点信息
GET
https://api.proxypanel.ml/api/trojan/v1/node/:id
Trojan后端启动和重载时获取节点信息
Path Parameters
Name
Type
Description
id*
integer
节点ID:int(10) unsigned
Headers
Name
Type
Description
key*
string
由管理后台线路系统,线路授权处取得授权密钥
timestamp*
integer
每次请求的10位时间戳
获取用户列表
GET
https://api.proxypanel.ml/api/trojan/v1/userList/:id
Trojan后端启动和重载时获取用户列表
Path Parameters
Name
Type
Description
id*
integer
节点ID:int(10) unsigned
Headers
Name
Type
Description
key*
string
由管理后台线路系统,线路授权处取得授权密钥
timestamp*
integer
每次请求的10位时间戳
最后更新于
这有帮助吗?