12345678910111213141516171819202122232425262728293031323334 |
- <?php
- $stime = strtotime("-1 day");
- $etime = strtotime("-1 day");
- # 数据收集的配置
- return array
- (
- # 获取用户增减数据
- 'stat_user_sum' => array
- (
- 'url' => 'https://api.weixin.qq.com/datacube/getusersummary?',
- 'param' => array
- (
- 'access_token' => 'token',
- 'begin_date' => date('Y-m-d', $stime),
- 'end_date' => date('Y-m-d', $etime),
- ),
- 'json' => true,
- ),
-
- # 获取累计用户数据
- 'stat_user_total' => array
- (
- 'url' => 'https://api.weixin.qq.com/datacube/getusercumulate?',
- 'param' => array
- (
- 'access_token' => 'token',
- 'begin_date' => date('Y-m-d', $stime),
- 'end_date' => date('Y-m-d', $etime),
- ),
- 'json' => true,
- ),
- );
|