获取小记者作品详情

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

  • 必须参数:key,作品信息的key值
{
    "articlepic": [],
    "author": "",
    "click": 202,
    "content": "<p>2</p>\r\n",
    "createtime": 1456824945,
    "desc": "2",
    "indexpic": null,
    "source": "",
    "title": "1",
    "key": "56d64d1f93d703f00800002a",
    "comment": {
        "comment": "评论",
        "time": 1456824932
    },
    "info_class": "article"
}


判断是否是小记者身份

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

  • 必须参数:user_openid,用户的身份id
{
    "userinfo": {
        "user_openid": "56cd6c8b93d703e43900002e",
        "userinfo": [
            "姓名:张三123",
            "qq:12",
            "姓名:张三12",
            "邮箱:11@qq",
            "姓名1:张三1"
        ],
        "createtime": 1456823474,
        "group": 0,
        "likename": "love1",
        "facepic": ""
    },
    "state": 1,
    "usergroupid": "56c672b393d703d41d000029",
    "message": "用户身份小记者!"
}
或
{
    "state": 0,
    "usergroupid": "56c672b393d703d41d000029",
    "message": "用户未进行认证小记者!"
}


小记者搜索

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

  • 必须参数:keyword,搜索关键词
  • 可选参数:page,当前页,可选,默认为1
  • 可选参数:pagesize,每页数量,可选,默认为8


获取小记者列表

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

  • 必须参数:user_openid,用户的身份id
[ {
        "createtime": 1457922348,
        "group": 0,
        "user_openid": "56cd6c8b93d703e43900002e",
        "userinfo": {
            "name": {
                "_id": null,
                "name": "姓名",
                "type": "string",
                "identification": "name",
                "length": "5",
                "required": "1",
                "sort": "3",
                "unique": "0",
                "value": "11"
            },
            "email": {
                "_id": null,
                "name": "邮箱",
                "type": "string",
                "identification": "email",
                "length": "5",
                "required": "1",
                "sort": "4",
                "unique": "0",
                "value": "额"
            },
        },
        "likename": "love1",
        "facepic": "",
        "total": 2
    }
]


获取认证小记者用户组字段信息

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

  • 必须参数:usergroupid,用户组id
{
    "state": 1,
    "usergroup": {
        "xiaojiazhename": {
            "_id": null,
            "name": "姓名",
            "type": "string",
            "identification": "xiaojiazhename",
            "length": "5",
            "required": "1",
            "sort": "0",
            "unique": "0"
        },
        "qq": {
            "_id": null,
            "name": "qq",
            "type": "string",
            "identification": "qq",
            "length": "10",
            "required": "1",
            "sort": "0",
            "unique": "1"
        },
        "name": {
            "_id": null,
            "name": "姓名",
            "type": "string",
            "identification": "name",
            "length": "5",
            "required": "1",
            "sort": "0",
            "unique": "0"
        },
        "email": {
            "_id": null,
            "name": "邮箱",
            "type": "string",
            "identification": "email",
            "length": "5",
            "required": "1",
            "sort": "0",
            "unique": "0"
        },
        "xiaojiazhenamef": {
            "_id": null,
            "name": "姓名1",
            "type": "string",
            "identification": "xiaojiazhenamef",
            "length": "5",
            "required": "1",
            "sort": "0",
            "unique": "0"
        }
    }
}


获取小记者认证信息

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

  • 必须参数:user_openid,用户的身份id
{
    "user_openid": "56d7a7e493d7038c0b00002a",
    "userinfo": [
        "姓名:6",
        "qq:6",
        "姓名:6",
        "邮箱:666",
        "姓名1:6",
        "图片:",
        "时间:",
        "数字:6",
        "图案:http://storage.tmtsp.com/569ef1b693d703f01b00002a/20160309/5c342493214a22f573957980f78ca2f0.jpg"
    ],
    "createtime": 1457489072,
    "group": 0,
    "likename": "love0",
    "facepic": "",
    "state": 0
}

group:1 为优秀小记者 0 为普通小记者
state:0审核中 1审核通过 2审核不通过



获取小记者的附件信息

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

  • 必须参数:user_openid,用户的身份id
{
    "usergroup": {
        "xiaojiazhename": {
            "_id": null,
            "name": "姓名",
            "type": "string",
            "identification": "xiaojiazhename",
            "length": "5",
            "required": "1",
            "sort": "0",
            "unique": "0",
            "value": "鹅鹅鹅"
        },
        "munber": {
            "_id": null,
            "name": "数字",
            "type": "number",
            "identification": "munber",
            "length": "20",
            "required": "0",
            "sort": "0",
            "unique": "0",
            "value": ""
        },
    },
       "group": 0,
    "likename": "love0",
    "facepic": "",
    "state": 1
}

group: 0普通小记者 1优秀小记者



小记者作品的老师评论或者回复

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

  • 必须参数:key,作品唯一标识
{
    "comment": "",
    "time": 1456824932
}


小记者身份认证

接口地址:[接口根]/plugin/reporter/authentication
请求类型:

  • 必须参数:USEROPENID,用户唯一标识
  • 必须参数:USERGROUPID,用户组身份唯一标识
  • 必须参数:CLIENTID,客户端唯一标识
H5页面返回认证信息


获取小记者列表

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

  • 可选参数:page,当前页,可选,默认为1
  • 可选参数:pagesize,每页数量,可选,默认为8
  • 可选参数:group,1表示优秀,0表示普通
[
    {
        "user_openid": "56cfa89a93d703100600002c",
        "userinfo": [
            "姓名:李四123",
            "qq:12",
            "姓名:李四12",
            "邮箱:11@qq",
            "姓名1:李四1"
        ],
        "createtime": 1456449733,
        "group": 1,
        "likename": "love",
        "facepic": "",
    },
    {
        "user_openid": "56cd6c8b93d703e43900002e",
        "userinfo": [
            "姓名:张三123",
            "qq:12",
            "姓名:张三12",
            "邮箱:11@qq",
            "姓名1:张三1"
        ],
        "createtime": 1456449561,
        "group": 1,
        "likename": "love1",
        "facepic": "",
    }
]


获取小记者作品列表

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

  • 必须参数:user_openid,认证小记者用户的身份id
  • 可选参数:page,当前页,可选,默认为1
  • 可选参数:pagesize,每页数量,可选,默认为8
[
    {
        "click": "100",
        "createtime": 1456467867,
        "title": "标题不能为空11",
        "author": "",
        "content": "<p>内容不能为空1111</p>\r\n",
        "indexpic": null,
        "source": "",
        "desc": "内容不能为空1111",
        "key": "56cfefa093d7032407000029"
    },
    {
        "click": "100",
        "createtime": 1456466793,
        "title": "标题不能为空",
        "author": "",
        "content": "<p>内容不能为空</p>\r\n",
        "indexpic": null,
        "source": "",
        "desc": "内容不能为空",
        "key": "56cfec1193d703100600002e"
    }
]