获取聚合数据

这个接口有点复杂,首先具体聚合哪些东西,由后台的“聚合数据”应用进行设置,用户设置的“数据块”名称则为聚合数据集合中的键名,比如聚合了3个块,分别是AA BB CC,那么这三个块名会作为三个数据列表的键名。

接口地址:[接口根]/plugin/juhe-api/data
请求类型:get

  • 必须参数:key,聚合数据的“聚合标识”
{
    "list": [
        {
            "title": "fdsafdsa-pic",
            "author": "",
            "source": "",
            "desc": null,
            "indexpic": "http://storage.tmtsp.com/5516ca2f4d981b1425000029/20150605/544d652cfafacbe84a584a5bfabe7c02.png",
            "createtime": 1433438532,
            "click": null,
            "info_class": "article",
            "key": "557089444d981b701e000037",
            "template": "default",
            "comment": 1075
        },
        {
            "title": "test",
            "author": "",
            "source": "",
            "desc": null,
            "indexpic": null,
            "createtime": 1433438436,
            "click": null,
            "info_class": "article",
            "key": "557088e44d981b701e000033",
            "template": "default",
            "comment": 1169
        },
        {
            "title": "test1",
            "author": "",
            "source": "",
            "desc": null,
            "indexpic": null,
            "createtime": 1433438419,
            "click": null,
            "info_class": "article",
            "key": "557088d34d981b701e00002f",
            "template": "default",
            "comment": 1207
        }
    ],
    "sdafdsf": [],
    "pic": [
        {
            "title": "images",
            "author": "",
            "source": "",
            "indexpic": "http://storage.tmtsp.com/5516ca2f4d981b1425000029/20150605/e930fffd4773ddf01398aa7b9f02bc1d.png",
            "createtime": 1433438553,
            "click": null,
            "desc": null,
            "info_class": "images",
            "key": "557089594d981b541e00002e",
            "template": "default",
            "comment": 1160
        },
        {
            "title": "fdsafdsa-pic",
            "author": "",
            "source": "",
            "desc": null,
            "indexpic": "http://storage.tmtsp.com/5516ca2f4d981b1425000029/20150605/544d652cfafacbe84a584a5bfabe7c02.png",
            "createtime": 1433438532,
            "click": null,
            "info_class": "article",
            "key": "557089444d981b701e000037",
            "template": "default",
            "comment": 1140
        }
    ]
}


获取数据源数据

接口地址:[接口根]/plugin/juhe-api/getlist
请求类型:get

  • 必须参数:key,数据块唯一标示
  • 可选参数:page,页码默认1
  • 可选参数:pagesize,条数默认8
[
    {
        "title": "问问",
        "author": "test1",
        "source": "",
        "desc": "",
        "indexpic": null,
        "createtime": 1457319472,
        "click": "100",
        "info_class": "article",
        "key": "56e11ca5c137e0381700002d",
        "template": "default",
        "comment": 0
    },
    {
        "title": "问问",
        "author": "test1",
        "source": "",
        "desc": "",
        "indexpic": null,
        "createtime": 1457319472,
        "click": "100",
        "info_class": "article",
        "key": "56dcedffc137e0b417000034",
        "template": "default",
        "comment": 0
    }
]


获取专题列表

获取专题聚合数据类别

接口地址:[接口根]/plugin/juhe-api/ztlist
请求类型:get

  • 必须参数:type,值为1专题类别聚合类别
[
    {
        "title": "zt",
        "image": "http://storage.tmtsp.com/5564254627f38e700b000032/20151029/ba5980ea5d92736ecd50c4c67fff160b.jpg",
        "createtime": 1446085280,
        "id": "563182a0c137e00c1700002e"
    },
    {
        "title": "werwer",
        "image": "http://storage.tmtsp.com/5564254627f38e700b000032/20151029/37f55fd4f15559119bb2c530f54dc64e.jpg",
        "createtime": 1446085432,
        "id": "56318338c137e00c1700002f"
    }
]