Contents

トピックの詳細を取得する

トピックに関連するチーム、アカウント、参加メンバーなどの詳細情報を取得します。

メソッド

GET

URL

https://typetalk.com/api/v1/topics/:topicId/details

スコープ

topic.read

URL パラメーター

名前説明
topicId数値トピック ID

レスポンスの例

{
  "topic": {
    "id": 208,
    "name": "IT Peeps",
    "description": "",
    "suggestion": "IT Peeps",
    "isDirectMessage": false,
    "lastPostedAt": "2016-12-21T10:12:02Z",
    "createdAt": "2014-06-10T02:32:29Z",
    "updatedAt": "2014-06-10T02:32:29Z"
  },
  "mySpace": {
    "space": {
      "key": "abcdefghij",
      "name": "Joe Tech Inc.",
      "enabled": true,
      "imageUrl": "https://apps.nulab.com/spaces/abcdefghij/photo/large"
    },
    "myRole": "ADMIN",
    "isPaymentAdmin": true,
    "myPlan": {
      "plan": {
        "key": "typetalk.free",
        "name": "Free Plan",
        "limitNumberOfUsers": 10,
        "limitTotalAttachmentSize": 1073741824
      },
      "enabled": true,
      "trial": null,
      "numberOfUsers": 7,
      "totalAttachmentSize": 0,
      "createdAt": "2016-01-10T02:32:29Z",
      "updatedAt": "2016-12-21T10:12:16Z"
    }
  },
  "teams": [],
  "groups": [
    {
      "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
    }
  ],
  "accounts": [
    {
      "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": 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"
    }
  ],
  "invitingAccounts": [],
  "invites": [],
  "accountsForApi": [],
  "integrations": [],
  "remainingInvitations": null
}

レスポンスのフォーマットは全て JSON です。GET メソッドは ETag に対応しているので、If-None-Match ヘッダを付けて送ると、変更がない場合は 304 を返します。日付のフォーマットは ISO 8601 で、UTC です。 (例 : 2014-01-09T06:20:08Z )