layout: post
title: coding团队信息查询
categories: coding-post
tag: coding api
coding团队信息查询
接口URL
https://<team-name>.coding.net/api/team/<user-name>/get
请求方式
GET
请求header参数:
cookie:eid
成功返回参数
参数 | 示例值 | 参数描述 |
---|---|---|
code | 0 | 状态码 |
data | ··· | 各种数据,就一一罗列了 |
成功示例数据
{
"code": 0,
"data": {
"id": 86566,
"owner": {
"sex": 1,
"location": "",
"company": "",
"slogan": "",
"website": "",
"introduction": "",
"avatar": "https://coding-net-production-static-ci.codehub.cn/WM-TEXT-AVATAR-hhRyeVzAOcdYIllXCioP.jpg",
"gravatar": "",
"lavatar": "https://coding-net-production-static-ci.codehub.cn/WM-TEXT-AVATAR-hhRyeVzAOcdYIllXCioP.jpg",
"created_at": 1563348713000,
"last_logined_at": 1580179099000,
"global_key": "yskcpYeNA",
"name": "xtx",
"name_pinyin": "xtx",
"updated_at": 1580179099000,
"path": "/u/yskcsdasdNA",
"status": 1,
"is_member": 0,
"id": 119745,
"follows_count": 0,
"fans_count": 0,
"tweets_count": 0,
"followed": false,
"follow": false,
"email_validation": 1,
"regist_channel_id": 0,
"account_type": 0
},
"created_at": 1563348713000,
"updated_at": 1563348713000,
"name": "···",
"name_pinyin": "|xtx|xutongxin",
"introduction": "",
"avatar": "/static/team_avatar/team-1.png",
"current_user_role_id": 100,
"path": "/t/xutongxin",
"html_link": "<a href=\"https://xutongxin.coding.net/admin\">···</a>",
"global_key": "xutongxin",
"member_count": 3,
"project_count": 3,
"staff_count": 2,
"manager_count": 1,
"member_without_2fa_count": 3,
"locked": false,
"admin_locked": false,
"force_twofa_enabled": false,
"password_length": "default",
"password_composition": "default",
"pwd_max_retry": 0,
"manager_force_twofa_enabled": false,
"staff_force_twofa_enabled": false,
"manager_member_without_2fa_count": 1,
"staff_member_without_2fa_count": 2,
"taskHide": true,
"isOwner": false,
"account_type": 0
}
}
失败返回参数
参数 | 示例值 | 参数描述 |
---|---|---|
code | 1000 | 状态码 |
msg | ··· | 错误原因描述 |
失败示例数据
{
"code": 1000,
"msg": {
"user_not_login": "用户未登录"
},
"data": {
"account_type": 0
}
}