朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

php 常用api接口集合

  1. 根据银行卡号获取基本信息(这里介绍的是阿里云提供的接口)

    接口: https://ccdcapi.alipay.com/validateAndCacheCardInfo.json?cardNo=银行卡号&cardBinCheck=true

    返回值:  {“cardType”:”DC”,”bank”:”CMB”,”key”:”银行卡号”,”messages”:[],”validated”:true,”stat”:”ok”}

    php 常用api接口集合插图

    cardType 就是银行卡的类型

    bank        就是开户行,这里显示的简称

    stat          ok就是查询成功

  2. 根据ip获取运营商和所在省市(这里介绍的是淘宝提供的接口,不知道为什么不稳定,经常502)

    接口: http://ip.taobao.com/service/getIpInfo.php?ip=ip地址

    返回值:  {“code”:0,”data”:{“ip”:”ip地址”,”country”:”中国”,”area”:””,”region”:”湖北”,”city”:”武汉”,”county”:”XX”,”isp”:”电信”,”country_id”:”CN”,”area_id”:””,”region_id”:”420000″,”city_id”:”420100″,”county_id”:”xx”,”isp_id”:”100017″}}

    php 常用api接口集合插图1

  3. 根据手机号码回去基本信息

    接口: https://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=手机号码

    返回值:

    __GetZoneResult_ = {

    mts:’手机号码前7位‘,

    province:’湖北’,

    catName:’中国移动’,

    telString:’手机号码‘,

    areaVid:’30513′,

    ispVid:’3236139′,

    carrier:’湖北移动’

    }

    php 常用api接口集合插图2

    先记下这3个,后面会继续更新,欢迎留言交流

文章来源于互联网:php 常用api接口集合

赞(1) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » php 常用api接口集合

评论 83

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #90

    I must thank you for the efforts you’ve put in writing this blog.
    I’m hoping to view the same high-grade blog posts by you later on as well.
    In truth, your creative writing abilities has motivated me to get my own site now 😉

    My web-site tracfone

    tracfone1周前 (11-26)回复
  2. #89

    hotels in cancun
    cancun resorts for families

    CharlvzcvyesTus2周前 (11-21)回复
  3. #88

    best all inclusive adults only resorts in cancun
    cape coral hotels

    CharltcsrvesTus2周前 (11-20)回复
  4. #87

    cancun all inclusive adults only resort
    list of all inclusive resorts in cancun

    CharlbqercesTus2周前 (11-20)回复
  5. #86

    all exclusive cancun
    palladium resort

    CharlggcazesTus2周前 (11-20)回复
  6. #85

    cancun all inclusive with air deals
    resorts near cancun mexico

    CharlouxwnesTus2周前 (11-19)回复
  7. #84

    top hotels in cancun all inclusive
    best cancun resorts for couples

    CharleirxiesTus2周前 (11-19)回复
  8. #83

    adult all inclusive cancun
    small all inclusive resorts in cancun

    CharluxetaesTus2周前 (11-18)回复