Wi-Fi数据统计

Wi-Fi数据统计

1475896838580728.jpg

查询一定时间范围内的WiFi连接总人数、微信方式连Wi-Fi人数、商家主页访问人数、连网后消息发送人数、新增公众号关注人数和累计公众号关注人数。查询的最长时间跨度为30天。

接口调用说明

协议:https
http请求方式: POST
请求URL:https://api.weixin.qq.com/bizwifi/statistics/list?access_token=ACCESS_TOKEN
POST数据格式:JSON

请求参数说明

参数是否必须说明
access_token调用接口凭证
POST数据JSON数据

POST数据

数据示例:

{
  "begin_date": "2015-05-01",
  "end_date": "2015-05-02",
  "shop_id": -1
}


字段说明:

字段是否必填说明
begin_date起始日期时间,格式yyyy-mm-dd,最长时间跨度为30天
end_date结束日期时间戳,格式yyyy-mm-dd,最长时间跨度为30天
shop_id按门店ID搜索,-1为总统计

返回数据说明 

正确返回JSON数据示例:

{
  "errcode": 0,
  "data": [
    {
      "shop_id": "-1",
      "statis_time": 1430409600000,
      "total_user": 2,
      "homepage_uv": 0,
      "new_fans": 0,
      "total_fans": 4,
      "wxconnect_user": 8,
      "connect_msg_user": 5
    },
    {
      "shop_id": "-1",
      "statis_time": 1430496000000,
      "total_user": 2,
      "homepage_uv": 0,
      "new_fans": 0,
      "total_fans": 4,
      "wxconnect_user": 4,
      "connect_msg_user": 3
    }
  ]
}

字段说明:

字段说明
shop_id门店ID,-1为总统计
statis_time统计时间,单位为毫秒
total_userWi-Fi连接总人数
homepage_uv商家主页访问人数
new_fans新增公众号关注人数
total_fans累计公众号关注人数
wxconnect_user微信方式连Wi-Fi人数
connect_msg_user连网后消息发送人数