Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to call WeChat Mini Programs's data statistics interface

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to call WeChat Mini Programs data statistics interface". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought. Let's study and learn "how to call WeChat Mini Programs data statistics interface"!

Please note:

1. Only the data after December 1, 2014 is stored in the official account database on the interface side, and the date before that will not be queried. Even if it is found, it is also unreliable dirty data.

2. Developers are asked to save the data in their own database after calling the API to obtain data, which not only speeds up the next user's access speed, but also reduces the unnecessary loss of Wechat API calls.

User analysis data API refers to the interface used to obtain user analysis data in the data statistics module of the official website of the public platform. The specific API list is as follows (there is no user attribute data API for now):

* time span refers to the time range within which data can be obtained when an API is called. For example, a time span of 7 means to obtain data for up to 7 days at a time. The actual value of access_token can be obtained by "get access_token".

API call request description

The user analyzing the data interface (including all interfaces in the interface list) needs to call the address POST the following sample packet to the corresponding interface:

{

"begin_date": "2014-12-02"

"end_date": "2014-12-07"

}

Return description

Normally, the return JSON packet for obtaining the user add or subtract data interface is as follows:

{"list": [{"ref_date": "2014-12-07", "user_source": 0, "new_user": 0, "cancel_user": 0} / / followed by ref_date data between begin_date and end_date]}

Normally, the return JSON packet for obtaining the cumulative user data interface is as follows:

{

"list": [

{

"ref_date": "2014-12-07"

"cumulate_user": 1217056

}

/ / there will be data of ref_date between begin_date and end_date.

]

}

Thank you for your reading. the above is the content of "how to call WeChat Mini Programs data Statistics Interface". After the study of this article, I believe you have a deeper understanding of how to call WeChat Mini Programs data Statistics Interface. the specific use also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report