版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

Host : dataapi.tuzhanai.com
BasePath : /opendata
Schemes : HTTPS

Produces

  • application/json

Paths

统计量(非实时): 浏览量(pv),访客量(uv),微信分享量,表单量

...

Example HTTP response

Response 200

...

{
  "status": 0, //status为200返回数据data,status为其他时返回错误消息errMsg
  "data": {
    "pv": "string",
    "uv": "string",
    "share": "string",
    "form": "string"
  },
  "errMsg": "string"
}

按时间分段统计量: 浏览量(pv),访客量(uv),微信分享量,表单量

...

Example HTTP response

Response 200

...

{
  "status": 0, //status为200返回数据data,status为其他时返回错误消息errMsg
  "data": {
    "pv": [
      {
        "dt": "string",
        "hr": "string",
        "count": "string"
      }
    ],
    "uv": [
      {
        "dt": "string",
        "hr": "string",
        "count": "string"
      }
    ],
    "share": [
      {
        "dt": "string",
        "hr": "string",
        "count": "string"
      }
    ],
    "form": [
      {
        "dt": "string",
        "hr": "string",
        "count": "string"
      }
    ]
  },
  "errMsg": "string"
}

表单获取(实时)

GET /opendata/formInfos/fetch

...

Example HTTP response

Response 200
{

...


  "status": 0, //status为200返回数据data,status为其他时返回错误消息errMsg

...


  "data": {

...


    "pageNum": 0, //页码

...


    "pageSize": 0, //请求的每页条数

...


    "startRow": 0, //数据开始行数

...


    "endRow": 0, //数据结束行数

...


    "total": 0, //数据总条数

...


    "pages": 0, //数据总页数

...


    "result":

...

 [
      {
        "channelid": "string",

...


        "time": "string",

...


        "form": {} //表单详情

...


      }
    ]
  },
  "errMsg": "string"

...


}

按钮点击事件统计(非实时)

GET /opendata/pageInfo/curves/linkClickSum

...

Example HTTP response

Response 200

...

{
  "status": 0, //status为200返回数据data,status为其他时返回错误消息errMsg
  "data": {
    "linkClickSum": [
      {
        "btname": "string", //按钮名称或id
        "remark": "string", //按钮描述
        "count": 0
      }
    ]
  },
  "errMsg": "string"
}