導出代理串

導出介面用於批量生成代理串。

介面資訊

POST /client/ip/dynamics/exportIp

請求頭

參數名稱必選類型說明
x-merchant-token是string商戶訪問令牌
x-merchant-code是string商戶編碼
Content-Type是stringapplication/json

請求參數

參數名稱必選類型說明
accountId是String動態帳號ID
endpointHost是String接入點 Host
endpointPort是String接入點 Port
count是Integer導出數量(1-1000)
formatType是Integer0~3
countryCode否String國家
stateCode否String州/省
cityCode否String城市
sessionCode否String會話標識(可用於 sticky 類需求)
sessionTime否String會話時長

請求示例

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)