获取工作区成员
接口描述
获取指定工作区下所有成员
请求URI
/space/:space_id/members
HTTP Method
GET
参数说明
参数名称 | 是否必填 | 参数说明 |
---|---|---|
space_id | true | 工作区ID |
offset | false | 结果返回的偏移量 |
limit | false | 结果返回的数量 |
响应结果说明
名称 | 说明 |
---|---|
space_member_id | 工作区成员id |
role | 工作区角色 |
status | 成员状态 |
member | 成员对象,参考user 实例 |
created_by | 邀请人对象,参考user 实例 |
created_on | 成员被邀请时间 |
joined_on | 成员加入时间 |
请求示例
GET /v2/space/:space_id/members?limit=20&offset=0 HTTP/1.1
Host:
Content-Type: application/json
Authorization: Bearer {YOUR ACCESS TOKEN}
响应示例
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"space_member_id": 1001,
"role": "admin\/member",
"status": "inviting\/joined",
"member": {
"name": "test1",
"user_id": 590001,
"avatar": "http:\/\/f2.huoban.com\/3911001\/user_avatar\/2518784\/xxx"
},
"created_by": {
"name": "test2",
"user_id": 590002,
"avatar": "http:\/\/f2.huoban.com\/3911001\/user_avatar\/2518784\/xxx"
},
"created_on": "0000-00-00 00:00:00",
"joined_on": "0000-00-00 00:00:00"
},
{
"space_member_id": 1000,
"role": "admin\/member",
"status": "inviting\/joined",
"member": {
"name": "test1",
"user_id": 590001,
"avatar": "http:\/\/f2.huoban.com\/3911001\/user_avatar\/2518784\/xxx"
},
"created_by": {
"name": "test1",
"user_id": 590001,
"avatar": "http:\/\/f2.huoban.com\/3911001\/user_avatar\/2518784\/xxx"
},
"created_on": "0000-00-00 00:00:00",
"joined_on": "0000-00-00 00:00:00"
}
]