プロキシの拡張
この文書では、各種IPアドレスの自動更新の設定方法について詳しく説明します。IPアドレスは期限内に更新しないと同じアドレスを維持できませんのでご注意ください。
エクステンションの計算
このエンドポイントは、コストの計算に役立ちます。ボリュームとレンタル期間に対する割引は、私たちのサービスで提供されているものと同様です。
終点:
POSThttps://proxy-seller.com/personal/api/v1/{YourApiKey}/prolong/calc/{type}
経路パラメータ
名称 | 価値 | 説明 |
|---|---|---|
認可 |
| あなたの個人APIキー(入手方法) |
プロキシ・タイプ |
| 拡張したいプロキシ・タイプ |
リクエスト本文
名称 | タイプ | 説明 |
|---|---|---|
子供たち | 番号 | カンマで区切られた単一のID、または'[ ]'内のIDの配列(入手方法) |
クーポン | ストリング | 追加したいコメント |
ピリオドID | ストリング | で選択した期間のID。/参考文献/リスト/{タイプ} リクエスト |
支払いID | ストリング | 支払いシステムのID。残高の場合は「1」、アカウントに追加されたカードの場合は「43」。 |
例(例: ipv4)
https://proxy-seller.com/personal/api/v1/fj4948ffhg58gh843gh/prolong/calc/ipv4応答
{
"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
}
],
"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
}
],
"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
}
]
}更新オーダーの作成
このセクションでは、更新オーダーの作成方法について説明します。
終点:
POSThttps://proxy-seller.com/personal/api/v1/{YourApiKey}/prolong/make/{type}
パスパラメータ
名称 | 価値 | 説明 |
|---|---|---|
認可 |
| あなたの個人APIキー(入手方法) |
プロキシ・タイプ |
| 延長したいプロキシ・タイプ |
リクエスト本文
名称 | タイプ | 説明 |
|---|---|---|
子供たち | 番号 | カンマで区切られた"[ ]"のIDの1つまたは配列 |
クーポン | ストリング | 追加したいコメント |
ピリオドID | ストリング | reference/list/{type}リクエストで選択した期間のID |
支払いID | ストリング | 支払いシステムのID "1" - 残高、"43" - キャビネットに追加したカード |
例(例: ipv4)
https://proxy-seller.com/personal/api/v1/fj4948ffhg58gh843gh/prolong/make/ipv4応答
{
"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
}
]
}