インターフェイス説明
- https://tps.kdlapi.com/api/changetpsipインターフェイスアドレス
- IPトンネルブローカーを交換してください
- IP期間> = 1分トンネルブローカ注文のサポート
結果へ戻ります
パラメータ説明
必須パラメータ
- 受注オーダー番号
- 署名APIキー
サンプルコード
import requests
# 使用隧道代理
# 隧道服务器
tunnel_host = "tps176.kdlapi.com"
tunnel_port = 15818
# 隧道id和密码
tid = "t18538132507140"
password = "4zdldwy7"
proxies = {
"http": "http://%s:%s@%s:%s/" % (tid, password, tunnel_host, tunnel_port),
"https": "http://%s:%s@%s:%s/" % (tid, password, tunnel_host, tunnel_port)
}
r = requests.get("https://dev.kdlapi.com/testproxy", proxies=proxies)
# API接口
api_url = "https://tps.kdlapi.com/api/changetpsip"
# 订单号跟API Key
orderid = 918538132507097
api_key = "azx0jv2f1r9ytsmzuxskvrf9rp01vcea"
# 参数
params = {
"orderid": orderid,
"signature": api_key,
}
res = requests.get(api_url, params=params)
print(res.content)
結果を操作すると、新しいIPを返します