Wi-Fi data statistics


Wi-Fi data statistics

1475896838580728.jpg

Query the total number of people connected to WiFi within a certain time range, the number of people connected to Wi-Fi via WeChat, the number of visitors to the business homepage, and the number of people connected to the Internet The number of people who sent messages, the number of new public account followers, and the cumulative number of public account followers. The maximum time span for queries is 30 days.

Interface call description

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

Request parameter description

##

POST data

Data example:

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


Field description:

ParameterIs it requiredDescription
access_tokenYesCall interface credentials
POST data isJSON data
FieldRequiredDescription
begin_date is the starting date and time, format yyyy-mm -dd, the maximum time span is 30 days
end_date is the end date timestamp, the format is yyyy-mm-dd, the longest The time span is 30 days
shop_idNoSearch by store ID, -1 is total statistics

Return data description

Correctly returned JSON data example:

{
  "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
    }
  ]
}

Field description:

##total_userTotal number of people connected to Wi-Fihomepage_uvNumber of visitors to the business homepagenew_fansNumber of new public account followerstotal_fansCumulative number of public account followerswxconnect_user Number of people connected to Wi-Fi via WeChatconnect_msg_userThe number of people who sent messages after connecting to the Internet
FieldDescription
shop_idStore ID, -1 is total statistics
statis_timeStatistical time in milliseconds
##