openshare icon indicating copy to clipboard operation
openshare copied to clipboard

微信登录后,如何获取用户信息?

Open jiqiuyucool opened this issue 10 years ago • 5 comments

微信登录后,如何获取用户信息?

jiqiuyucool avatar Jan 12 '16 07:01 jiqiuyucool

see #12

100apps avatar Jan 25 '16 09:01 100apps

微信的获取用户信息接口:http://mp.weixin.qq.com/wiki/17/c0f37d5704f0b64713d5d2c37b468d75.html

微博的获取用户接口:http://open.weibo.com/wiki/2/users/show

QQ的获取用户信息接口:http://wiki.open.qq.com/wiki/v3/user/get_info

具体的用户信息,都需要单独用api去调取。 我自己也稍微做了一些封装,https://github.com/laughmaker/TWSNS ,这是个人使用的,仅作参考,有问题可以讨论

laughmaker avatar Feb 02 '16 03:02 laughmaker

@laughmaker 👍

已start

100apps avatar Feb 02 '16 04:02 100apps

您好,给的接口前端可以调用么?还是只能后台调用。

wangtian076 avatar Mar 16 '16 01:03 wangtian076

@wangtian076 其实前台后台都可以调用。但是我们推荐前台调用。这样:

  1. 减轻服务器压力
  2. 防止服务器被当作spam被封,而影响用户登录。

100apps avatar Mar 24 '16 03:03 100apps