有下面兩種介面都是以URL GET方式提交引數,以XML的形式回傳查詢結果
查詢IP地址:
http://www.youdao.com/smartresult-xml/search.s?type=ip&q=IP地址
舉例:http://www.youdao.com/smartresult-xml/search.s?type=ip&q=123.233.157.9
回傳:
<?xml version="1.0" encoding="gbk"?>
<smartresult>
<product type="ip">
<ip>123.233.157.9</ip>
<location>山東省濟南市 網通</location>
</product>
</smartresult>
查詢手機號碼歸屬地:
http://www.yodao.com/smartresult-xml/search.s?type=mobile&q=手機號
舉例:http://www.yodao.com/smartresult-xml/search.s?type=mobile&q=13892101111
回傳:
<?xml version="1.0" encoding="gbk"?>
<smartresult>
<product type="mobile">
<phonenum>13892101111</phonenum>
<location>陜西 延安</location>
</product>
</smartresult>
請教大神 怎么用indy控制元件實作通過IP和移動電話來獲取地區資訊的功能
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/137461.html
標籤:VCL組件使用和開發
上一篇:誰能給個解釋么?
