廣州上宏網(wǎng)站建設(shè)汽車行業(yè)網(wǎng)站建設(shè)
1、使用瀏覽器
1.1、獲取當(dāng)前IP(限制 1200次 /小時(shí))
用瀏覽器訪問(wèn)?http://ip.hahado.cn/current-ip?輸入用戶名和密碼
[{"ip": "180.102.181.64","ttl": 262.87515091896057}
]
- "ip": 字段是當(dāng)前的外網(wǎng)IP ("ip":"null" 正在切換中,暫時(shí)沒(méi)有IP)
- "ttl": 字段是ip可以使用的剩余時(shí)間(秒)
1.2、手動(dòng)切換IP(限制 180次 /小時(shí),間隔>20秒)
用瀏覽器訪問(wèn)?http://ip.hahado.cn/switch-ip?輸入用戶名和密碼
[{"last_ip": "180.102.181.64","result": true}
]
- "last_ip": 切換前的IP
- "result": 結(jié)果 true (成功) false (失敗)
1.3、獲取統(tǒng)計(jì)(限制 100次 /小時(shí))
http://ip.hahado.cn/ip-status?輸入用戶名和密碼
[{"all_ip": [["121.237.160.177","2017-03-23 14:03:39"],["49.65.179.204","2017-03-23 13:48:19"],["121.237.163.65","2017-03-23 12:56:20"]],"all_ip_exprie_tm": 7200,"changeip_time": 300,"ip": "121.237.160.177","last_ip": "117.62.144.170"}
]
- "all_ip": 曾經(jīng)使用過(guò)的IP和時(shí)間
- "last_ip": 切換前的IP
- "ip": 當(dāng)前的IP
- "changeip_time": 自動(dòng)切換IP間隔(秒)如果為0 => 關(guān)閉
- "all_ip_exprie_tm": IP不允許在xxx(秒)以內(nèi)重復(fù)
2、使用curl
2.1、 獲取當(dāng)前IP(限制 1200次 /小時(shí))
curl -u username:password http://ip.hahado.cn/current-ip[{"ip": "180.102.181.64","ttl": 262.87515091896057}
]
- username : 用戶名
- password : 密碼
- "ip": 字段是當(dāng)前的外網(wǎng)IP ("ip":"null" 正在切換中,暫時(shí)沒(méi)有IP)
- "ttl": 字段是ip可以使用的剩余時(shí)間(秒), -1 表示永遠(yuǎn)不過(guò)期(需要手動(dòng)切換)
2.2、手動(dòng)切換IP(限制 180次 /小時(shí),間隔>20秒)
curl -u username:password http://ip.hahado.cn/switch-ip[{"last_ip": "180.102.181.64","result": true}
]
- username : 用戶名
- password : 密碼
- "last_ip": 切換前的IP
- "result": 結(jié)果 true (成功) false (失敗)
2.3、獲取統(tǒng)計(jì)(限制 100次 /小時(shí))
curl -u username:password http://ip.hahado.cn/ip-status[{"all_ip": [["121.237.160.177","2017-03-23 14:03:39"],["49.65.179.204","2017-03-23 13:48:19"],["121.237.163.65","2017-03-23 12:56:20"]],"all_ip_exprie_tm": 7200,"changeip_time": 300,"ip": "121.237.160.177","last_ip": "117.62.144.170"}
]
- username : 用戶名
- password : 密碼
- "all_ip": 曾經(jīng)使用過(guò)的IP和時(shí)間
- "last_ip": 切換前的IP
- "ip": 當(dāng)前的IP
- "changeip_time": 自動(dòng)切換IP間隔(秒)如果為0 => 關(guān)閉
- "all_ip_exprie_tm": IP不允許在xxx(秒)以內(nèi)重復(fù)