user/info:获取当前用户信息接口
获取当前用户信息接口
http://changyan.sohu.com/api/2/user/info
GET
是
参数名 | 类型 | 是否必须 | 说明 |
client_id | String | Y | 分配的云评论appid。点击此处查看 |
access_token | String | Y | 采用OAuth授权方式为必填参数 |
callback | String | N | 如果callback为空,则返回JSON格式。如果不为空,则为JSONP格式,callback为回调函数名字 |
JSON/JSONP
{ "nickname": "李德华gl", //昵称 "from": "新浪微博", //账号来源 "passports": [ //绑定的账号列表 { "nickname": "李德华gl", "from": "新浪微博", "expired": false, "grant": true, "passport_id": "WEIBO_2206454681", "user_id": 30705828, "platform_id": 2, "img_url": "http://tp2.sinaimg.cn/2206454681/180/5647595159/1", "followers_count": 0, "profile_url": "http://www.weibo.com/2206454681", "is_shared": true } ], "sign": "324U6EZlqfcaKlIZQoGbBfFxFJc=", "latest_reply_sum": 1, //最近回复数 "comment_sum": 8, //发表评论数 "user_type": 2, "isv_refer_id": "", "user_id": 30705828, //用户id "platform_id": 2, "img_url": "http://sucimg.itc.cn/avatarimg/30705828_1373868824453_c55", //头像 "profile_url": "http://changyan.sohu.com/u/30705828?aid=cyqlk8Afk" //个人主页 }