查询接入点

查询账号可用的接入点列表。

接口信息

GET /client/dynamics/account/endpoint/info

请求头

参数名类型描述
x-merchant-tokenString商户令牌
x-merchant-codeString商户代码

请求参数

参数名必选类型描述
accountIdLong用户账号ID

代码示例

fetch('/client/dynamics/account/endpoint/info?accountId=1', {
    method: 'GET',
    headers: {
        'x-merchant-token': 'your_token',
        'x-merchant-code': 'your_code'
    }
})
.then(response => response.json())
.then(data => console.log(data));

响应示例

{
    "total": 1,
    "rows": [
        {
          "accountId": "384933",
          "endpointHost": "gate-us.host.io",
          "endpointPort": 13233,
          "supportedProtocol": "http"
        }
    ],
    "code": 200,
    "msg": "查询成功"
}

响应参数说明

参数名类型描述
accountIdString账户ID
endpointHostString接入点主机地址
endpointPortInteger接入点端口号
supportedProtocolString支持的协议 (如 http, socks5 等)