获取镇区新闻内容

获取镇区新闻内容信息

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

  • 必须参数:newsid,镇区新闻唯一标识
[
    {
        "newstitle": "123123",
        "newstype": "1",
        "newspic": "http://storage.tmtsp.com/5564254627f38e700b000032/20151030/283b291c550b7e33e57ec20e2dfed5f9.jpg",
        "nwscontent": "<p>123123123</p>\r\n",
        "newsid": "563309ebc137e0781900002b"
    }
]


获取镇区列表

获取所有镇区列表

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

  • 可选参数:page,当前页,可选,默认为1
  • 可选参数:pagesize,每页数量,可选,默认为8
[
    {
        "townname": "澳洲区",
        "towndesc": "澳洲区澳洲区澳洲区澳洲区澳洲区澳洲区",
        "townpic": [
            "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151030/fcd789026e8f4bae2b03a1fe0cb26dc0.png",
            "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151030/0b35cd321d0bf1213bc6e04b2f4650e4.png",
            "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151030/2c69a05658c024522ed02dc334d0e9cf.png"
        ],
        "createtime": 1446183351,
        "id": "563301b727f38ebc0d000083"
    },
    {
        "townname": "日本区",
        "towndesc": "日本区日本区日本区日本区日本区日本区日本区日本区日本区日本区",
        "townpic": [
            "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151030/6d650dd044eae2658793ae8aaf069e05.png",
            "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151030/0d97bf65a6b878e69a70f82e168f5e4b.png",
            "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151030/c3a2c52f27c3070eb7461c230f328d3b.png"
        ],
        "createtime": 1446183427,
        "id": "5633020327f38e4812000080"
    }
]


获取镇区更多新闻

更多镇区动态以及企业新闻

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

  • 必须参数:id,镇区唯一标识
  • 必须参数:newtype,新闻类型,1动态新闻2是企业新闻
[
    {
        "newstitle": "1323123",
        "newstype": "2",
        "newspic": null,
        "nwscontent": "<p>123123</p>\r\n",
        "newsid": "563309f3c137e0781900002c",
        "nwstime":1232342342
    },
    {
        "newstitle": "234234234",
        "newstype": "2",
        "newspic": null,
        "nwscontent": "<p>234234234</p>\r\n",
        "newsid": "563309fac137e0781900002d",
        "nwstime":1232342342
    },
    {
        "newstitle": "55555",
        "newstype": "2",
        "newspic": null,
        "nwscontent": "<p>55555</p>\r\n",
        "newsid": "56330a0bc137e00819000029",
        "nwstime":1232342342
    },
    {
        "newstitle": "玩儿玩儿",
        "newstype": "2",
        "newspic": null,
        "nwscontent": "<p>玩儿玩儿问认为</p>\r\n",
        "newsid": "56330a6bc137e0781900002f",
         "nwstime":1232342342
    },
    {
        "newstitle": "问玩儿",
        "newstype": "2",
        "newspic": "http://storage.tmtsp.com/5564254627f38e700b000032/20151030/851cad5f1a2eb25bed23f7ba7aeb6087.jpg",
        "nwscontent": "<p>玩儿完全而全文</p>\r\n",
        "newsid": "5632e314c137e0881900002e",
         "nwstime":1232342342
    },
    {
        "newstitle": "23423423423423",
        "newstype": "2",
        "newspic": "http://storage.tmtsp.com/55af1f7227f38e54040000b1/20151030/b85c6de53684ba8d975c616cac37028d.png",
        "nwscontent": "<p>234234234234</p>\r\n",
        "newsid": "56330a2ac137e0781900002e",
          "nwstime":1232342342
    }
]

[
    {
        "newstitle": "123123",
        "newstype": "1",
        "newspic": null,
        "nwscontent": "<p>123123123</p>\r\n",
        "newsid": "563309ebc137e0781900002b",
        "nwstime":1232342342
    },
    {
        "newstitle": "到 去额q",
        "newstype": "1",
        "newspic": "http://storage.tmtsp.com/5564254627f38e700b000032/20151030/283b291c550b7e33e57ec20e2dfed5f9.jpg",
        "nwscontent": "<p>去玩儿全文</p>\r\n",
        "newsid": "5632e308c137e0881900002d",
         "nwstime":1232342342
    },
    {
        "newstitle": "123123",
        "newstype": "1",
        "newspic": null,
        "nwscontent": "<p>123123</p>\r\n",
        "newsid": "563309e3c137e0781900002a",
         "nwstime":1232342342
    }
]


获取政区数据源单个数据源下的数据列表

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

  • 必须参数:key,单个数据源的key
[
    {
        "author": "",
        "click": 109,
        "createtime": 1456824945,
        "desc": "2",
        "indexpic": null,
        "source": "",
        "title": "1",
        "info_class": "article",
        "key": "56d64d1f93d703f00800002a",
        "template": "default",
        "comment": 0
    },
    {
        "author": "",
        "click": "100",
        "createtime": 1456799235,
        "desc": "内容不能为空",
        "indexpic": null,
        "source": "",
        "title": "标题不能为空qqqq",
        "info_class": "article",
        "key": "56d4fdef93d703801c00002c",
        "template": "default",
        "comment": 0
    },
    {
        "author": "",
        "click": "138",
        "createtime": 1456797306,
        "desc": "内容不能为空1111",
        "indexpic": "http://storage.tmtsp.com/569ef1b693d703f01b00002a/20160229/3ba61427bb5bb064244080532691fad0.jpg",
        "source": "",
        "title": "标题不能为空11",
        "info_class": "article",
        "key": "56d3ac7e93d703880700002a",
        "template": "default",
        "comment": 0
    }
]


镇区统计

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

[
    {
        "key": "56c6e012c137e0540c00002e",
        "name": "我去而且我",
        "towndesc": "玩儿完",
        "createtime": 1455874066,
        "townpic": [
            {
                "pic": "http://storage.tmtsp.com/55752f2927f38eac0a0000a8/20160219/b66459b6f74957e4d0f2cf7e59a74514.png",
                "desc": "尔特人"
            },
            {
                "pic": "",
                "desc": ""
            },
            {
                "pic": "",
                "desc": ""
            }
        ],
        "count": 6,
        "detail": [
            {
                "name": "listb",
                "listname": "专题",
                "infocount": 4
            },
            {
                "name": "listc",
                "listname": "新闻",
                "infocount": 2
            }
        ]
    },
    {
        "key": "56c6be07c137e0d00300002b",
        "name": "问题问题",
        "towndesc": "伍尔特伍尔特",
        "createtime": 1455865351,
        "townpic": [
            {
                "pic": "http://storage.tmtsp.com/55752f2927f38eac0a0000a8/20160219/bf135ffee5b65d0576b90690db3a7a19.png",
                "desc": "瑞特让他"
            },
            {
                "pic": "http://storage.tmtsp.com/55752f2927f38eac0a0000a8/20160219/2cca3bf2b1b1ac1d90b76453bc49c9ef.png",
                "desc": "尔特让他"
            },
            {
                "pic": "",
                "desc": ""
            }
        ],
        "count": 5,
        "detail": [
            {
                "name": "list",
                "listname": "头条信息",
                "infocount": 2
            },
            {
                "name": "lista",
                "listname": "专题模块",
                "infocount": 3
            }
        ]
    }
]


镇区发稿量排行

镇区聚合数据源发稿量排行

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

[
    {
        "name": "诡镇",
        "tags": [
            "56669a6cc137e03c0c000029",
            "5680c9edc137e0602c00002c"
        ],
        "count": 2
    },
    {
        "name": "诛仙镇",
        "tags": [
            "56669aa4c137e0b41400002f",
            "5680c9cac137e0602c000029",
            "5680c9edc137e0602c00002c",
            "5680c9dfc137e0602c00002b",
            "5680ca06c137e0602c00002e",
            "5680ca28c137e0602c00002f",
            "5680ca3fc137e0602c000031"
        ],
        "count": 1
    }
]