导出代理串

导出接口用于批量生成代理串。

接口信息

POST /client/ip/dynamics/exportIp

请求头

参数名必选类型说明
x-merchant-tokenstring商户访问令牌
x-merchant-codestring商户编码
Content-Typestringapplication/json

请求参数

参数名必选类型说明
accountIdString动态账号ID
endpointHostString接入点 Host
endpointPortString接入点 Port
countInteger导出数量(1-1000)
formatTypeInteger0~3
countryCodeString国家
stateCodeString州/省
cityCodeString城市
sessionCodeString会话标识(可用于 sticky 类需求)
sessionTimeString会话时长

请求示例

const response = await fetch('/client/ip/dynamics/exportIp', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-merchant-token': 'your-token-here',
    'x-merchant-code': 'your-merchant-code'
  },
  body: JSON.stringify({
    accountId: '816222',
    endpointHost: 'as.example.net',
    endpointPort: '2333',
    count: 3,
    formatType: 3
  })
})

const result = await response.json()

响应示例

{
  "msg": "操作成功",
  "code": 200,
  "data": [
    "host:port:username:password"
  ]
}

响应参数说明

参数名类型描述
codeInteger业务状态码
msgString提示信息
dataArray代理串列表(每项为字符串),格式与 formatType 一致(如 host:port:user:pass