Home > Back-end >  How to use the indy control implementation via IP and mobile phone to get the function of the region
How to use the indy control implementation via IP and mobile phone to get the function of the region

Time:10-20

There are two types of interface are the GET URL submission parameters, return in the form of XML query results

Check out the IP address:
http://www.youdao.com/smartresult-xml/search.s? Type=ip& Q=IP address

For example: http://www.youdao.com/smartresult-xml/search.s? Type=ip& Q=123.233.157.9

Returns:

& lt; ? The XML version="1.0" encoding="GBK"?>
& lt; Smartresult>
& lt; Product type="IP" & gt;
& lt; Ip> 123.233.157.9 & lt;/ip>
& lt; Location> Shandong jinan netcom & lt;/location>
& lt;/product>
& lt;/smartresult>

Check out phone number belongs to:
http://www.yodao.com/smartresult-xml/search.s? Type=mobile& Q=cell phone number

For example: http://www.yodao.com/smartresult-xml/search.s? Type=mobile& Q=13892101111

Returns:

& lt; ? The XML version="1.0" encoding="GBK"?>
& lt; Smartresult>
& lt; Product type="mobile" & gt;
& lt; Phonenum> 13892101111 & lt;/phonenum>
& lt; Location> Shaanxi yan 'an & lt;/location>
& lt;/product>
& lt;/smartresult>

Consult how to use a great god indy control implementation via IP and mobile phone to get the function of the regional information
  • Related