接口描述
- https://dev.kdlapi.com/api/getproxyauthorization 接口地址
- 獲取指定訂單訪問代理IP的鑑權信息,鑑權信息包含用戶名密碼,用於請求私密代理/獨享代理/隧道代理時進行身份驗證
鑑權信息在HTTP請求的Header中傳遞,格式爲:
Proxy-Authorization: <type> <credentials>
返回結果
參數說明
必填參數
- orderid 訂單號
- signature API Key
代碼樣例
import requests
# API接口
api_url = "https://dev.kdlapi.com/api/getproxyauthorization"
# 訂單號跟API Key
orderid = 948538010667581
api_key = "ll1jibev8bohcplm1p20jy8ksx4my2od"
# 參數
params = {
"orderid": orderid,
"signature": api_key,
}
res = requests.get(api_url, params=params)
print(res.content)
運行結果,返回鑑權信息