Get the App
SLTechnology News&Howtos  ›  Development  › 

How to call WeChat Mini Programs's data statistics interface

Shulou Source: shulou.com Published: 2022-06-01 05:25:58 09月30日 Update

This article mainly introduces the relevant knowledge of how to call WeChat Mini Programs's data statistics interface. The content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this article on how to call WeChat Mini Programs's data statistics interface. Let's take a look.

API call request description

Interface Analysis data interfaces (including all interfaces in the interface list) need to call the address POST the following sample packet to the corresponding interface:

{"begin_date": "2014-12-07", "end_date": "2014-12-07"}

Call parameter description

Whether the parameter must indicate whether access_token is the start date of calling API credential begin_date to obtain data, and the difference between begin_date and end_date must be less than "* time span" (for example, when * time span is 1, the difference between begin_date and end_date can only be 0, which can be less than 1), otherwise it will be reported that end_date is the end date of data acquisition, and the value allowed by end_date is yesterday.

Return description

Normally, the JSON packet returned by the interface analysis data interface is as follows:

{"list": [{"ref_date": "2014-12-07", "callback_count": 36974, "fail_count": 67, "total_time_cost": 14994291 "max_time_cost": 5044} / / data from different ref_date (between begin_date and end_date)]}

Normally, the returned JSON packet of the timesharing data interface for interface analysis is as follows:

{"list": [{"ref_date": "2014-12-01", "ref_hour": 0, "callback_count": 331, "fail_count": 18, "total_time_cost": 167870 "max_time_cost": 5042} / / data from different ref_hour]}

Return parameter description

Parameter description ref_date data date ref_hour data hour callback_count through the server configuration address to get the message, the number of passive responses to user messages fail_count the number of failures of the above actions total_time_cost total time-consuming, divided by callback_count is the average time-consuming max_time_cost*** time-consuming article on "how to call WeChat Mini Programs data statistics interface" this article is introduced here, thank you for reading! I believe that everyone has a certain understanding of the knowledge of "how to call WeChat Mini Programs data statistics interface". If you want to learn more knowledge, you are welcome to follow the industry information channel.

Tags: Data interface data statistics programs statistics parameters dates knowledge analysis differences content address difference situation time times messages articles spans between Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Microsoft Shulou Tech Info Xiaomi Docker