ローテーションの変更
Updated:
終点:
POSThttps://proxy-seller.com/personal/api/v2/{YourApiKey}/residentsubuser/list/rotation
パスのパラメータ:
名称 | 価値 | 説明 |
|---|---|---|
認可 |
| 個人APIキー |
リクエスト本文:
名称 | タイプ | 説明 |
|---|---|---|
アイドル | 番号 | 作成されたリストのID |
ローテーション | 番号 | 設定したい新しい回転値、"-1" - 回転なし(スティッキー)、"0" - リクエストごとの回転、"1"-"3600" - 秒単位の時間による回転。 |
パッケージ・キー | ストリング | 回転を変更したいサブユーザのパッケージのキー。 |
例
https://proxy-seller.com/personal/api/v2/fj4948ffhg58gh843gh/residentsubuser/list/rotation反応だ:
{
"status": "success",
"data": {
"id": 20483779,
"title": "Andorra Telecom, S.a.u.",
"login": "b5bb75973e04a569",
"password": "nMqaohvXmSk1CF2t",
"whitelist": "",
"rotation": "-1 = rotation, 0 = rotation per request, 1..60 time in seconds",
"geo": [
{
"country": "AD",
"region": "Andorra La Vella",
"city": "Andorra La Vella",
"isp": "Andorra Telecom, S.a.u."
}
],
"export": {
"ports": 1000,
"ext": "txt"
}
},
"errors": []
}{
"status": "error",
"data": null,
"errors": [
{
"message": "Error api key",
"code": 503,
"customData": null
},
{
"message": "IP not allowed",
"code": 503,
"customData": null
},
{
"message": "Request limit reached",
"code": 503,
"customData": null
}
]
}{
"status": "error",
"data": null,
"errors": [
{
"message": "IP not allowed",
"code": 503,
"customData": null
}
]
}Same response in case with wrong rotation!
{
"status": "error",
"data": null,
"errors": [
{
"message": "not-found",
"code": 404,
"customData": null
},
{
"message": "not-found (404)",
"code": 0,
"customData": null
}
]
}{
"status": "error",
"data": null,
"errors": [
{
"message": "Tarif not found",
"code": 0,
"customData": null
}
]
}