返回介绍

user_information

发布于 2024-06-22 21:25:04 字数 9313 浏览 0 评论 0 收藏 0

/action/openapi/user_information


/action/openapi/user_information 用户详情 URL /action/openapi/user_information 支持格式 JSON JSONP XML HTTP请求方式 GET/POST 是否需要登录 否 访问授权限制 授权范围(scope) 访问用户信息 请求参数

必选类型及范围说明默认值
access_tokentruestringoauth2_token获取的access_token
usertruelong查询用户id
friendtruelong被查询用户id(friend和friend_name必须存在一个)
friend_namefalsestring被查询用户ident或名称
dataTypetruestring返回值类型['json'|'jsonp'|'xml']json

注意事项 暂无 返回结果 JSON

{
    "uid": 20, 
    "name": "xxx", 
    "ident": "xxx", 
    "gender": 1, 
    "relation": 3, 
    "province": "上海", 
    "city": "闵行",
    "platforms": [
        "Java EE", 
        "PHP", 
        ".NET/C#", 
        "JavaScript", 
        "Delphi/Pascal"
    ],
    "expertise": [
        "WEB开发", 
        "服务器端开发", 
        "DBA/数据库"
    ], 
    "joinTime": "2008-09-18 09:17:15.0", 
    "lastLoginTime": "2012-03-13 15:22:58.0", 
    "portrait": "https://www.wenjiangs.com/wp-content/uploads/2024/docimg4/1790-3fogfy5znn3.jpg",
    "notice": {
        "replyCount": 0, 
        "msgCount": 0, 
        "fansCount": 0, 
        "referCount": 0
    } 
}    
                        

返回字段说明

返回值字段类型及范围说明
uidlong被查询用户id
namestring用户名称
identstring用户Ident
genderint性别:1-男,2-女
relationint关注情况:1-已关注(对方未关注我)2-相互关注 3-未关注
provincestring省份
citystring城市
platformsarray开发平台
expertisearray专长领域
joinTimedatetime加入时间
lastLoginTimedatetime最近登录时间
portraitstring头像
notice.replyCountint未读评论数
notice.msgCountint未读私信数
notice.fansCountint新增粉丝数
notice.referCountint未读@我数

错误说明

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文