代理

获取代理的可用性

GET /access/availability/static-residential

返回包含可用代理数量的国家列表。

响应案例:

curl -X GET "https://apid.iproyal.com/v1/reseller/access/availability/static-residential" \
     -H "X-Access-Token: <your_access_token>" \
     -H "Content-Type: application/json"

响应示例:

{
    "data": [
        {
            "country_code": "DE",
            "country_name": "Germany",
            "available_ips": 2887
        },
        {
            "country_code": "GB",
            "country_name": "United Kingdom",
            "available_ips": 2351
        },
        {
            "country_code": "US",
            "country_name": "United States",
            "available_ips": 1112
        },
        {
            "country_code": "NL",
            "country_name": "Netherlands",
            "available_ips": 1293
        },
        {
            "country_code": "IT",
            "country_name": "Italy",
            "available_ips": 1812
        },
        ...
    ]
}

更改凭证

POST /orders/proxies/change-credentials

正文参数

名称
类型
描述

order_id

整型

订单ID

proxies

数组

代理列表

username

字符串

代理连接用户名

password

字符串

代理连接密码

random_password

布尔值

是否要指定随机密码

is_reset

布尔值

是否要指定随机用户名和密码

响应案例:

curl -X POST "https://apid.iproyal.com/v1/reseller/orders/proxies/change-credentials" \
     -H "X-Access-Token: <your_access_token>" \
     -H "Content-Type: application/json" \
     -d '{
           "order_id": 12345,
           "username": "new_username",
           "password": "new_password",
           "random_password": false,
           "is_reset": true,
           "proxies": ["proxy1", "proxy2"]
         }'

Last updated