Contents
組織メンバーを取得する
組織にいるメンバーを取得します。
メソッド
GET
URL
https://typetalk.com/api/v1/spaces/:spaceKey/members
スコープ
organization.read
URL パラメーター
名前 | 型 | 説明 |
---|---|---|
spaceKey | 文字列 | 組織キー |
レスポンスの例
{
"accounts": [
{
"id": 101,
"name": "ahorowitz",
"fullName": "AHorowitz",
"suggestion": "AHorowitz",
"imageUrl": "https://typetalk.com/accounts/101/profile_image.png?t=1403663549000",
"isBot": false,
"createdAt": "2014-06-25T02:32:29Z",
"updatedAt": "2014-06-25T02:32:29Z"
},
{
"id": 105,
"name": "brad",
"fullName": "BradMarshalls",
"suggestion": "BradMarshalls",
"imageUrl": "https://typetalk.com/accounts/105/profile_image.png?t=1404009149000",
"isBot": false,
"createdAt": "2014-06-29T02:32:29Z",
"updatedAt": "2014-06-29T02:32:29Z"
},
{
"id": 106,
"name": "chelseab",
"fullName": "ChelseaB",
"suggestion": "ChelseaB",
"imageUrl": "https://typetalk.com/accounts/106/profile_image.png?t=1404095549000",
"isBot": false,
"createdAt": "2014-06-30T02:32:29Z",
"updatedAt": "2014-06-30T02:32:29Z"
},
{
"id": 104,
"name": "cooper",
"fullName": "CooperDaChopper",
"suggestion": "CooperDaChopper",
"imageUrl": "https://typetalk.com/accounts/104/profile_image.png?t=1403922749000",
"isBot": false,
"createdAt": "2014-06-28T02:32:29Z",
"updatedAt": "2014-06-28T02:32:29Z"
},
{
"id": 100,
"name": "jessica",
"fullName": "Jessica Fitzherbert",
"suggestion": "Jessica Fitzherbert",
"imageUrl": "https://typetalk.com/accounts/100/profile_image.png?t=1403577149000",
"isBot": false,
"createdAt": "2014-06-24T02:32:29Z",
"updatedAt": "2014-06-24T02:32:29Z"
},
{
"id": 102,
"name": "moss",
"fullName": "Moss",
"suggestion": "Moss",
"imageUrl": "https://typetalk.com/accounts/102/profile_image.png?t=1403749949000",
"isBot": false,
"createdAt": "2014-06-26T02:32:29Z",
"updatedAt": "2014-06-26T02:32:29Z"
},
{
"id": 103,
"name": "stefhull",
"fullName": "StefHull",
"suggestion": "StefHull",
"imageUrl": "https://typetalk.com/accounts/103/profile_image.png?t=1403836349000",
"isBot": false,
"createdAt": "2014-06-27T02:32:29Z",
"updatedAt": "2014-06-27T02:32:29Z"
}
],
"groups": [
{
"group": {
"id": 1102,
"key": "groupkey03",
"name": "Cycling team",
"suggestion": "Cycling team",
"imageUrl": "https://apps.nulab.com/spaces/abcdefghij/groups/groupkey03/photo/medium",
"createdAt": "2014-06-12T02:32:29Z",
"updatedAt": "2014-06-12T02:32:29Z"
},
"memberCount": 1
},
{
"group": {
"id": 1100,
"key": "groupkey01",
"name": "Joe Tech Inc. All",
"suggestion": "Joe Tech Inc. All",
"imageUrl": "https://apps.nulab.com/spaces/abcdefghij/groups/groupkey01/photo/medium",
"createdAt": "2014-06-10T02:32:29Z",
"updatedAt": "2014-06-10T02:32:29Z"
},
"memberCount": 4
},
{
"group": {
"id": 1101,
"key": "groupkey02",
"name": "OSS Project",
"suggestion": "OSS Project",
"imageUrl": "https://apps.nulab.com/spaces/abcdefghij/groups/groupkey02/photo/medium",
"createdAt": "2014-06-11T02:32:29Z",
"updatedAt": "2014-06-11T02:32:29Z"
},
"memberCount": 1
},
{
"group": {
"id": 1103,
"key": "groupkey04",
"name": "WP Team",
"suggestion": "WP Team",
"imageUrl": "https://apps.nulab.com/spaces/abcdefghij/groups/groupkey04/photo/medium",
"createdAt": "2014-06-13T02:32:29Z",
"updatedAt": "2014-06-13T02:32:29Z"
},
"memberCount": 1
}
]
}
レスポンスのフォーマットは全て JSON です。GET メソッドは ETag に対応しているので、If-None-Match ヘッダを付けて送ると、変更がない場合は 304 を返します。日付のフォーマットは ISO 8601 で、UTC です。 (例 : 2014-01-09T06:20:08Z )