朱纯树博客
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接口集合

评论 28

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

    PG SLOT ทุนน้อยก็รวยได้ แม้ว่าคุณจะมีทุนน้อย แต่อยากเล่นเกมสล็อตออนไลน์นั่นไม่อยาก​เลย เพราะในแต่รายการใช้เงินลงทุนน้อยมากถึงมากที่สุด พีจีสล็อต ไม่ต้องลงทุนเยอะก็มีโอกาสรวยได้

  2. #29

    Hi there just wanted to give you a brief heads up and let you know a
    few of the pictures aren’t loading correctly. I’m not sure why
    but I think its a linking issue. I’ve tried it in two
    different browsers and both show the same results.

  3. #28

    You should be a part of a contest for one of the greatest websites on the internet.
    I will highly recommend this blog!

  4. #27

    Awesome issues here. I am very happy to look your post.
    Thank you a lot and I am looking forward to contact you.
    Will you kindly drop me a e-mail?

  5. #26

    I constantly spent my half an hour to read this
    webpage’s articles all the time along with a mug of
    coffee.

  6. #25

    Highly energetic blog, I loved that a lot. Will there be a part 2?

  7. #24

    We are a gaggle of volunteers and starting
    a new scheme in our community. Your web site offered us with useful information to work
    on. You’ve performed an impressive activity and our whole group will probably be grateful to you.

    tinyurl.com1周前 (08-08)回复
  8. #23

    I do not even know how I ended up here, but I thought this post was
    good. I don’t know who you are but definitely you are going to a famous blogger if you aren’t
    already 😉 Cheers!

  9. #22

    It’s difficult to find well-informed people on this topic, however, you sound
    like you know what you’re talking about! Thanks

  10. #21

    Hi mates, good paragraph and fastidious urging
    commented at this place, I am in fact enjoying by
    these.

    http://tinyurl.com/1个月前 (07-07)回复
  11. #20

    Greetings! I’ve been reading your site for some time now and finally got the courage to go ahead and give you a shout
    out from Humble Tx! Just wanted to say keep
    up the fantastic work!

    tinyurl.com2个月前 (06-12)回复
  12. #19

    I do not even know how I ended up here, but I
    thought this post was great. I do not know who you are but certainly
    you’re going to a famous blogger if you aren’t already 😉 Cheers!

    tinyurl.com2个月前 (06-11)回复
  13. #18

    Hello to every body, it’s my first pay a visit
    of this webpage; this web site contains amazing and
    actually fine information designed for visitors.

    tinyurl.com2个月前 (06-06)回复