blackflag
V2EX  ›  微信

微信问题: 怎么获取用户信息

  •  
  •   blackflag · Aug 19, 2015 · 3796 views
    This topic created in 3940 days ago, the information mentioned may be changed or developed.

    用户打开我微信里网站时 怎么获取用户的 openid 用户基本信息 .

    5 replies    2015-08-19 15:48:45 +08:00
    abelyao
        1
    abelyao  
       Aug 19, 2015 via iPhone   ❤️ 1
    连开发文档都不看的么?
    连百度都懒得搜么?
    scusjs
        2
    scusjs  
       Aug 19, 2015   ❤️ 1
    微信有个回调,带一个 code 的 get 参数,通过这个 code 去获取 ps.开发文档里面有啊
    blackflag
        3
    blackflag  
    OP
       Aug 19, 2015
    @scusjs 可以的得到 access_token 和 openid 但是请求得到用户信息这里返回错误了 {"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest"} 有人知道是怎么回事么
    blackflag
        4
    blackflag  
    OP
       Aug 19, 2015
    @scusjs 可以的得到 access_token 和 openid 但是请求得到用户信息这里返回错误了 {"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest"}
    gangsta
        5
    gangsta  
       Aug 19, 2015
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1100 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 22:46 · PVG 06:46 · LAX 15:46 · JFK 18:46
    ♥ Do have faith in what you're doing.