按用户UID或昵称返回用户资料,同时返回用户的最新发布的微博
/api/index.php/UserApi/show
JSON
GET/POST
参数名称 | 必须 | 类型及范围 | 描述 |
---|---|---|---|
access_token | 是 | string | Oauth2授权成功后获得的access_token |
company_id | 否 | int |
可选 组织ID |
user_id | 否 | int |
二选一 用户ID |
user_name | 否 | string |
二选一 用户名称 |
{ "code": "00000", "message": "操作成功", "result": { "id": "403", "code": "2011223056", "username": "王超然", "email": null, "mobile": "13503533179", "sex": "女", "type": "本科", "college": "会计学院", "major": "会计学", "grade": "2011", "class": "会计1105", "enter_time": "", "default_org": "1", "default_org_mobile": "1", "admin_level": "0", "truename": null, "py": "王超然|wangchaoran|wcr", "domain": null, "is_active": "1", "is_init": "1", "is_nospeak": "0", "is_synchronizing": "0", "province": "0", "city": "0", "location": "山西省阳泉市", "mood": "", "birthday": "0", "avatar": "avatar/2014/10/14/543ce15b2bd33", "ctime": "1411524902", "org_list": [ { "id": "1", "name": "校园社区", "short_name": "校园社区", "is_attestation": "0", "logo": "", "is_auto": "0", "spokesman_level": "0", "admin_level": "0" }, { "id": "13", "name": "山西老乡会", "short_name": "山西老乡会", "is_attestation": "0", "logo": "", "is_auto": "0", "spokesman_level": "0", "admin_level": "0" }, { "id": "14", "name": "会计2011级", "short_name": "会计2011级", "is_attestation": "0", "logo": "", "is_auto": "0", "spokesman_level": "0", "admin_level": "0" }, { "id": "15", "name": "会计1105班", "short_name": "会计1105班", "is_attestation": "0", "logo": "", "is_auto": "0", "spokesman_level": "0", "admin_level": "0" }, { "id": "16", "name": "饿得摩的", "short_name": "饿得摩的", "is_attestation": "2", "logo": "", "is_auto": "1", "spokesman_level": "1", "admin_level": "1" }, { "id": "17", "name": "抹粉MSN哦婆婆", "short_name": "抹粉MSN哦婆婆", "is_attestation": "2", "logo": "", "is_auto": "1", "spokesman_level": "1", "admin_level": "1" }, { "id": "18", "name": "我热弟弟哦哦哦哦", "short_name": "我热弟弟哦哦哦哦", * "is_attestation": "2", "logo": "2014/10/18/54424b8239f83.jpg", "is_auto": "1", "spokesman_level": "1", "admin_level": "1" } ], "uid": "403", "face": "http://sczzu-upload.stor.sinaapp.com/avatar/2014/10/14/543ce15b2bd33_big.jpg", "space": "/home/index.php?s=/Space/index/uid/", "weibo_count": 10, "favorite_count": 0, "followers_count": 1, "followed_count": 2, "is_followed": "unfollow", "company_list": [ { "id": "1", "name": "校园社区", "short_name": "校园社区", "is_attestation": "0", "logo": "", "is_auto": "0", "spokesman_level": "0", "admin_level": "0" }, { "id": "13", "name": "山西老乡会", "short_name": "山西老乡会", "is_attestation": "0", "logo": "", "is_auto": "0", "spokesman_level": "0", "admin_level": "0" }, { "id": "14", "name": "会计2011级", "short_name": "会计2011级", "is_attestation": "0", "logo": "", "is_auto": "0", "spokesman_level": "0", "admin_level": "0" }, { "id": "15", "name": "会计1105班", "short_name": "会计1105班", "is_attestation": "0", "logo": "", "is_auto": "0", "spokesman_level": "0", "admin_level": "0" }, { "id": "16", "name": "饿得摩的", "short_name": "饿得摩的", "is_attestation": "2", "logo": "", "is_auto": "1", "spokesman_level": "1", "admin_level": "1" }, { "id": "17", "name": "抹粉MSN哦婆婆", "short_name": "抹粉MSN哦婆婆", "is_attestation": "2", "logo": "", "is_auto": "1", "spokesman_level": "1", "admin_level": "1" }, { "id": "18", "name": "我热弟弟哦哦哦哦", "short_name": "我热弟弟哦哦哦哦", "is_attestation": "2", "logo": "2014/10/18/54424b8239f83.jpg", "is_auto": "1", "spokesman_level": "1", "admin_level": "1" } ], "company": { "id": "1", "name": "校园社区", "short_name": "校园社区", "orgcode": "0000000000000001", "invite_level": "0", "is_open": "1" } } }