Estendere i proxy
Updated:
Questo documento fornisce una guida dettagliata su come configurare il rinnovo automatico per i propri indirizzi IP di vario tipo. Si prega di notare che gli indirizzi IP devono essere rinnovati tempestivamente per mantenere gli stessi indirizzi.
Calcola l'estensione
Questo endpoint ti aiuta a calcolare il costo. Gli sconti per volume e periodi di noleggio sono simili a quelli offerti dal nostro servizio.
Risultato finale:
Parametri del percorso
Nome | Valore | Descrizione |
|---|---|---|
Autorizzazione |
| La tua chiave API personale (come ottenere) |
Tipo di proxy |
| Il tipo di proxy che si desidera estendere |
Corpo della richiesta
Nome | Tipo | Descrizione |
|---|---|---|
ids | Stringa | Un singolo ID o un array di ID racchiuso tra parentesi quadre '[ ]', separati da virgole |
coupon | Stringa | Il commento che desideri aggiungere |
periodId | Stringa | ID del periodo selezionato nella richiesta /reference/list/{type} o codice del periodo stabile, ad esempio 1m |
paymentId | Stringa | L'ID del sistema di pagamento. «balance» per il saldo, «card» per la carta aggiunta al proprio account. |
Nome | Tipo | Descrizione |
|---|---|---|
orderIds | Stringa | Un singolo ID o un array di orderID racchiuso tra '[ ]', separati da virgole |
coupon | Stringa | Il commento che desideri aggiungere |
periodId | Stringa | ID del periodo selezionato nella richiesta /reference/list/{type} o codice del periodo stabile, ad esempio 1m |
paymentId | Stringa | L'ID del sistema di pagamento. «balance» per il saldo, «card» per la carta aggiunta al proprio account. |
Esempio (ad es. ipv4)
https://proxy-seller.com/personal/api/v2/fj4948ffhg58gh843gh/prolong/calc/ipv4
{
"ids": ["10"],
"periodId": "1m",
"coupon": "",
"paymentId": "balance"
}Risposta
{
"status": "success",
"data": {
"warning": "",
"balance": 40.4,
"total": 35.1,
"quantity": 5,
"currency": "USD",
"discount": 0.22,
"items": [
{
"id": 10,
"order_id": 1000000,
"order_number": "1000000_57471911",
"base_order_number": "1000000_57471911",
"ip": "127.0.0.1",
"port_http": 80,
"port_socks": 443,
"login": "login",
"password": "password",
"auth_ip": "127.0.0.2",
"country": "USA",
"date_start": "d.m.Y H:i:s",
"date_end": "d.m.Y H:i:s",
"comment": "d.m.Y H:i:s",
"status": "ACTIVE",
"rotation": "5",
"link_reboot": "https://proxy-seller.com/api/proxy/reboot?token=12345",
"can_prolong": true,
"uptime": false
}
],
"orders": 2
},
"errors": []
}{
"status": "error",
"data": {
"warning": "Insufficient funds. Total $2. Not enough $33.10",
"balance": 2,
"total": 35.1,
"quantity": 5,
"currency": "USD",
"discount": 0.22,
"items": [
{
"id": 10,
"order_id": 1000000,
"ip": "127.0.0.1",
"port_http": 80,
"port_socks": 443,
"login": "login",
"password": "password",
"auth_ip": "127.0.0.2",
"country": "USA",
"date_start": "d.m.Y H:i:s",
"date_end": "d.m.Y H:i:s",
"comment": "d.m.Y H:i:s",
"status": "ACTIVE",
"rotation": "5",
"link_reboot": "https://proxy-seller.com/api/proxy/reboot?token=12345",
"can_prolong": true,
"uptime": false
}
],
"orders": 2
},
"errors": []
}{
"status": "error",
"data": null,
"errors": [
{
"message": "Set existed [periodId] from reference",
"code": 0,
"customData": null
}
]
}{
"status": "error",
"data": null,
"errors": [
{
"message": "IP not found",
"code": 0,
"customData": null
}
]
}Crea un ordine di rinnovo
In questa sezione imparerai come creare un ordine di rinnovo.
Risultato finale:
Parametri del percorso
Nome | Valore | Descrizione |
|---|---|---|
Autorizzazione |
| La tua chiave API personale (come ottenere) |
Tipo di proxy |
| Tipo di proxy che si desidera prolungare |
Corpo della richiesta
Nome | Tipo | Descrizione |
|---|---|---|
ids | Stringa | Un singolo ID o un array di ID racchiuso tra '[ ]', separati da virgole |
coupon | Stringa | Il commento che desideri aggiungere |
periodId | Stringa | ID del periodo selezionato nella richiesta /reference/list/{type} o codice del periodo stabile, ad esempio 1m |
paymentId | Stringa | L'ID del sistema di pagamento. «balance» per il saldo, «card» per la carta aggiunta al proprio account. |
Nome | Tipo | Descrizione |
|---|---|---|
orderIds | Stringa | Un singolo ID o un array di orderID racchiuso tra '[ ]', separati da virgole |
coupon | Stringa | Il commento che desideri aggiungere |
periodId | Stringa | ID del periodo selezionato nella richiesta /reference/list/{type} o codice del periodo stabile, ad esempio 1m |
paymentId | Stringa | L'ID del sistema di pagamento. «balance» per il saldo, «card» per la carta aggiunta al proprio account. |
Esempio (ad es. ipv4)
https://proxy-seller.com/personal/api/v2/fj4948ffhg58gh843gh/prolong/make/ipv4
{
"ids": ["10"],
"periodId": "1m",
"coupon": "",
"paymentId": "balance"
}Risposta
{
"status": "success",
"data": {
"orderId": 3388536,
"total": 35.1,
"listBaseOrderNumbers": [
"1000000_57471911"
],
"balance": 40.4,
},
"errors": []
}{
"status": "error",
"data": {
"warning": "Insufficient funds. Total $2. Not enough $33.10",
"balance": 2,
"total": 35.1,
"quantity": 5,
"currency": "USD",
"discount": 0.22,
"items": [
{
"id": 10,
"order_id": 1000000,
"ip": "127.0.0.1",
"port_http": 80,
"port_socks": 443,
"login": "login",
"password": "password",
"auth_ip": "127.0.0.2",
"country": "USA",
"date_start": "d.m.Y H:i:s",
"date_end": "d.m.Y H:i:s",
"comment": "d.m.Y H:i:s",
"status": "ACTIVE",
"rotation": "5",
"link_reboot": "https://proxy-seller.com/api/proxy/reboot?token=12345",
"can_prolong": true
}
],
"orders": 2
},
"errors": []
}{
"status": "error",
"data": null,
"errors": [
{
"message": "Set existed [periodId] from reference",
"code": 0,
"customData": null
}
]
}{
"status": "error",
"data": null,
"errors": [
{
"message": "IP not found",
"code": 0,
"customData": null
}
]
}