contentsholder/topics.list

作成したトピックの一覧を取得

URL

GET /v1.0/contentsholder/topics.list

パラメータ

名前 必須 デフォルト値 説明
unit_id 必須 - コンテンツホルダー・ユニットのID
offset 任意 0 取得開始位置。0~5000の範囲で指定。
limit 任意 10 取得件数。1~100の範囲で指定。

レスポンス

{
    "ok": true,
    "topics": [
        {
            "id": "0123456",
            "title": "桜特集",
            "created_at": "2018-02-06T17:46:43+00:00",
            "updated_at": "2018-02-06T17:46:43+00:00",
            "unit":{
                "id": "1234567",
                "name": "ノアドット新聞",
                "status": "public",
                "signature_color": "0f0f0f",
                "header_type": "background",
                "header_position": "center",
                "copyright_owner": "Nordot Inc.",
                "default_post_expire_days": 0,
                "created_at": "2015-11-16T19:06:46+00:00",
                "updated_at": "2018-03-05T05:45:25+00:00",
                "header_image":{
                    "url": "https://nordot-res.cloudinary.com/ch/units/1234567/header_1.png",
                    "url_w": 400,
                    "url_h": 60,
                    "thumb_360": "https://nordot-res.cloudinary.com/t_thumb_360/ch/units/1234567/header_2.png",
                    "square_300": "https://nordot-res.cloudinary.com/t_square_300/ch/units/1234567/header_2.png"
                },
                "profile_image": null,
                "publisher":{
                    "id": "0012345",
                    "name": "株式会社ノアドット新聞",
                    "created_at": "2015-11-16T19:02:38+00:00",
                    "updated_at": "2018-02-06T17:29:41+00:00"
                },
                "language": "en-US",
                "timezone": "Asia/Tokyo"
            }
        },
        ...
    ],
    "paging": {
        "count": 10,
        "offset": 0,
        "limit": 10,
        "has_next": true
    }
}

topicsには、条件に一致したcontentsholder topicsオブジェクトの配列が入っています。詳細は、 contentsholder topicオブジェクトとpagingオブジェクトを参照してください。

エラー

エラーコード 説明
no_unit_id unit_idが必須なのに渡されていない
invalid_unit_id 不正なunit_idの指定
unit_not_found ユニットが見つからない
invalid_offset 不正なoffsetの指定
invalid_limit 不正なlimitの指定

上記以外のエラーは、共通エラーの項目を参照してください。