龍巖易富通網(wǎng)絡(luò)科技有限公司

龍巖小程序開(kāi)發(fā),龍巖分銷系統(tǒng)

手機(jī)號(hào)碼歸屬地?cái)?shù)據(jù)庫(kù)查詢API

2015.09.10 | 485閱讀 | 0條評(píng)論 | 未命名

手機(jī)號(hào)碼歸屬地?cái)?shù)據(jù)庫(kù)API提供了查詢手機(jī)號(hào)碼歸屬地的服務(wù)接口。 1. 基于 form 形式(打開(kāi)完整頁(yè)面)

這種形式占用頁(yè)面的空間小,查詢的時(shí)候會(huì)打開(kāi)新窗口。代碼如下:
[php]</div> <div align="left"> <form action="http://appyun.sinaapp.com/" method="GET" target="_blank"> <input type="hidden" name="app" value="mobile"/> <input type="text" name="mobile" value="請(qǐng)輸入手機(jī)號(hào)碼" onclick=this.value="" /> <input type="submit" value="查詢" /> </form> [/php] 2. 基于 超鏈接 形式
http://appyun.sinaapp.com/index.php?app=mobile&controller=index&action=init&mobile=13800138000
3. 基于 WebService 形式
返回XML形式的查詢結(jié)果?http://appyun.sinaapp.com/index.php?app=mobile&controller=index&action=api&mobile=13800138000&outfmt=xml
[php]</div> <div align="left"> <?xml version="1.0" encoding="utf-8" ?> <QueryResponse xmlns="http://appyun.sinaapp.com/"> <Mobile>13800138000</Mobile> <QueryResult>True</QueryResult> <Province>北京</Province> <City>北京</City> <AreaCode>010</AreaCode> <PostCode>100000</PostCode> <Operators>中國(guó)移動(dòng)</Operators> <Card>GSM</Card> </QueryResponse> [/php] 返回JSON形式的查詢結(jié)果
http://appyun.sinaapp.com/index.php?app=mobile&controller=index&action=api&mobile=13800138000&outfmt=json
[php]</div> <div align="left">{"Mobile":"13800138000","Province":"\u5317\u4eac","City":"\u5317\u4eac","AreaCode":"010","PostCode":"100000","Operators":"\u4e2d\u56fd\u79fb\u52a8","Card":"GSM"}</div> <div align="left">[/php]
返回JSON帶回調(diào)函數(shù)形式的查詢結(jié)果? ?http://appyun.sinaapp.com/index.php?app=mobile&controller=index&action=api&mobile=13800138000&outfmt=json&callback=querycallback
[php]</div> <div align="left">querycallback({"Mobile":"13800138000","Province":"\u5317\u4eac","City":"\u5317\u4eac","AreaCode":"010","PostCode":"100000","Operators":"\u4e2d\u56fd\u79fb\u52a8","Card":"GSM"})</div> <div align="left">[/php]
返回普通文本形式的查詢結(jié)果? ?http://appyun.sinaapp.com/index.php?app=mobile&controller=index&action=api&mobile=13800138000&outfmt=text
[php]</div> <div align="left"> Mobile:13800138000 QueryResult:True Province:北京 City:北京 AreaCode:010 PostCode:100000 Operators:中國(guó)移動(dòng) Card:GSM [/php]
 

贊 (

發(fā)表評(píng)論