Contents

マイトピック一覧を取得する

ピン留めしたトピック、最近参加したトピック、トピックグループを取得します。

メソッド

GET

URL

https://typetalk.com/api/v1/spaces/:spaceKey/myTopics

スコープ

my

URL パラメータ

名前説明
spaceKey文字列スペースキー

レスポンスの例

{
    "pinnedTopics": [
        {
            "topic": {
                "id": 3559,
                "name": "デザイナー",
                "suggestion": "デザイナー",
                "isDirectMessage": false,
                "lastPostedAt": "2018-11-06T07:40:02Z",
                "createdAt": "2016-02-05T06:13:44Z",
                "updatedAt": "2018-09-19T06:00:09Z"
            },
            "exTopicGroupId": 1703,
            "unread": {
                "topicId": 3559,
                "postId": 167963,
                "count": 0,
                "isOverCountLimit": false
            },
            "createdAt": "2018-10-29T03:07:00Z"
        }
    ],
    "joinedTopics": [],
    "myTopicGroups": [
        {
            "myTopicGroup": {
                "id": 1702,
                "name": "重要トピック",
                "sortType": "recent",
                "isMuted": false
            },
            "myTopics": []
        },
        {
            "myTopicGroup": {
                "id": 1703,
                "name": "デザイン",
                "sortType": "recent",
                "isMuted": false
            },
            "myTopics": [
                {
                    "topic": {
                        "id": 3557,
                        "name": "サイト改善",
                        "suggestion": "サイト改善",
                        "isDirectMessage": false,
                        "lastPostedAt": "2018-11-07T02:05:38Z",
                        "createdAt": "2016-02-05T06:13:44Z",
                        "updatedAt": "2018-10-18T01:54:18Z"
                    },
                    "exTopicGroupId": null,
                    "unread": {
                        "topicId": 3557,
                        "postId": 167968,
                        "count": 0,
                        "isOverCountLimit": false
                    },
                    "createdAt": "2018-10-29T05:45:54Z"
                },
                {
                    "topic": {
                        "id": 3560,
                        "name": "UX改善",
                        "suggestion": "UX改善",
                        "isDirectMessage": false,
                        "lastPostedAt": "2018-10-11T09:46:39Z",
                        "createdAt": "2016-02-05T06:13:44Z",
                        "updatedAt": "2018-09-19T06:02:24Z"
                    },
                    "exTopicGroupId": null,
                    "unread": {
                        "topicId": 3560,
                        "postId": 167320,
                        "count": 0,
                        "isOverCountLimit": false
                    },
                    "createdAt": "2018-10-29T03:08:25Z"
                },
                {
                    "topic": {
                        "id": 6234,
                        "name": "デザイナーへのお知らせ",
                        "suggestion": "デザイナーへのお知らせ",
                        "isDirectMessage": false,
                        "lastPostedAt": "2018-09-19T06:08:13Z",
                        "createdAt": "2018-09-19T06:02:51Z",
                        "updatedAt": "2018-09-19T06:02:51Z"
                    },
                    "exTopicGroupId": null,
                    "unread": {
                        "topicId": 6234,
                        "postId": 167321,
                        "count": 0,
                        "isOverCountLimit": false
                    },
                    "createdAt": "2018-10-29T03:08:39Z"
                },
                {
                    "topic": {
                        "id": 6236,
                        "name": "ウェブサイト制作",
                        "suggestion": "ウェブサイト制作",
                        "isDirectMessage": false,
                        "lastPostedAt": "2018-09-19T06:06:25Z",
                        "createdAt": "2018-09-19T06:06:21Z",
                        "updatedAt": "2018-09-19T06:06:21Z"
                    },
                    "exTopicGroupId": null,
                    "unread": {
                        "topicId": 6236,
                        "postId": 167319,
                        "count": 0,
                        "isOverCountLimit": false
                    },
                    "createdAt": "2018-10-29T03:08:32Z"
                },
                {
                    "topic": {
                        "id": 6235,
                        "name": "デザイン情報共有",
                        "suggestion": "デザイン情報共有",
                        "isDirectMessage": false,
                        "lastPostedAt": "2018-09-19T06:05:48Z",
                        "createdAt": "2018-09-19T06:03:43Z",
                        "updatedAt": "2018-09-19T06:03:43Z"
                    },
                    "exTopicGroupId": null,
                    "unread": {
                        "topicId": 6235,
                        "postId": 167314,
                        "count": 0,
                        "isOverCountLimit": false
                    },
                    "createdAt": "2018-10-29T03:08:45Z"
                }
            ]
        },
        {
            "myTopicGroup": {
                "id": 1704,
                "name": "Apps",
                "sortType": "recent",
                "isMuted": false
            },
            "myTopics": []
        },
        {
            "myTopicGroup": {
                "id": 1705,
                "name": "情報収集",
                "sortType": "recent",
                "isMuted": false
            },
            "myTopics": [
                {
                    "topic": {
                        "id": 6258,
                        "name": "雑談トピック",
                        "suggestion": "雑談トピック",
                        "isDirectMessage": false,
                        "lastPostedAt": "2018-10-29T07:32:19Z",
                        "createdAt": "2018-10-01T05:38:47Z",
                        "updatedAt": "2018-10-01T05:38:47Z"
                    },
                    "exTopicGroupId": null,
                    "unread": {
                        "topicId": 6258,
                        "postId": 167836,
                        "count": 0,
                        "isOverCountLimit": false
                    },
                    "createdAt": "2018-10-29T07:30:33Z"
                }
            ]
        },
        {
            "myTopicGroup": {
                "id": 1681,
                "name": "マーケティング",
                "sortType": "recent",
                "isMuted": false
            },
            "myTopics": [
                {
                    "topic": {
                        "id": 6309,
                        "name": "サイト改善",
                        "suggestion": "サイト改善",
                        "isDirectMessage": false,
                        "lastPostedAt": "2018-10-18T01:51:31Z",
                        "createdAt": "2018-10-18T01:43:17Z",
                        "updatedAt": "2018-10-18T01:43:17Z"
                    },
                    "exTopicGroupId": null,
                    "unread": {
                        "topicId": 6309,
                        "postId": 167636,
                        "count": 0,
                        "isOverCountLimit": false
                    },
                    "createdAt": "2018-10-18T01:43:17Z"
                },
                {
                    "topic": {
                        "id": 6310,
                        "name": "ディレクション",
                        "suggestion": "ディレクション",
                        "isDirectMessage": false,
                        "lastPostedAt": "2018-10-18T01:51:24Z",
                        "createdAt": "2018-10-18T01:43:31Z",
                        "updatedAt": "2018-10-18T01:43:31Z"
                    },
                    "exTopicGroupId": null,
                    "unread": {
                        "topicId": 6310,
                        "postId": 167635,
                        "count": 0,
                        "isOverCountLimit": false
                    },
                    "createdAt": "2018-10-18T01:43:31Z"
                },
                {
                    "topic": {
                        "id": 6311,
                        "name": "UI/UX",
                        "suggestion": "UI/UX",
                        "isDirectMessage": false,
                        "lastPostedAt": "2018-10-18T01:51:16Z",
                        "createdAt": "2018-10-18T01:43:43Z",
                        "updatedAt": "2018-10-18T01:43:43Z"
                    },
                    "exTopicGroupId": null,
                    "unread": {
                        "topicId": 6311,
                        "postId": 167634,
                        "count": 0,
                        "isOverCountLimit": false
                    },
                    "createdAt": "2018-10-18T01:43:43Z"
                },
                {
                    "topic": {
                        "id": 6312,
                        "name": "インフラチーム",
                        "suggestion": "インフラチーム",
                        "isDirectMessage": false,
                        "lastPostedAt": "2018-10-18T01:51:07Z",
                        "createdAt": "2018-10-18T01:43:56Z",
                        "updatedAt": "2018-10-18T01:43:56Z"
                    },
                    "exTopicGroupId": null,
                    "unread": {
                        "topicId": 6312,
                        "postId": 167633,
                        "count": 0,
                        "isOverCountLimit": false
                    },
                    "createdAt": "2018-10-18T01:43:56Z"
                }
            ]
        }
    ],
    "favoritesOnboarding": false
}

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