導出介面用於批量生成代理串。
POST /client/ip/dynamics/exportIp
| 參數名稱 | 必選 | 類型 | 說明 |
| x-merchant-token | 是 | string | 商戶訪問令牌 |
| x-merchant-code | 是 | string | 商戶編碼 |
| Content-Type | 是 | string | application/json |
| 參數名稱 | 必選 | 類型 | 說明 |
| accountId | 是 | String | 動態帳號ID |
| endpointHost | 是 | String | 接入點 Host |
| endpointPort | 是 | String | 接入點 Port |
| count | 是 | Integer | 導出數量(1-1000) |
| formatType | 是 | Integer | 0~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"
]
}
| 參數名稱 | 類型 | 說明 |
| code | Integer | 業務狀態碼 |
| msg | String | 提示資訊 |
| data | Array | 代理串列表(每項為字符串),格式與 formatType 一致(如 host:port:user:pass) |