@@ 44-53 (lines=10) @@ | ||
41 | * |
|
42 | * @return \EasyWeChat\Support\Collection |
|
43 | */ |
|
44 | public function deviceSummary(array $device_identifier, $begin_date, $end_date) |
|
45 | { |
|
46 | $params = [ |
|
47 | 'device_identifier' => $device_identifier, |
|
48 | 'begin_date' => $begin_date, |
|
49 | 'end_date' => $end_date, |
|
50 | ]; |
|
51 | ||
52 | return $this->parseJSON('json', [self::API_DEVICE, $params]); |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * Fetch all devices statistics data by date. |
|
@@ 82-90 (lines=9) @@ | ||
79 | * |
|
80 | * @return \EasyWeChat\Support\Collection |
|
81 | */ |
|
82 | public function pageSummary($page_id, $begin_date, $end_date) |
|
83 | { |
|
84 | $params = [ |
|
85 | 'page_id' => $page_id, |
|
86 | 'begin_date' => $begin_date, |
|
87 | 'end_date' => $end_date, |
|
88 | ]; |
|
89 | return $this->parseJSON('json', [self::API_PAGE, $params]); |
|
90 | } |
|
91 | ||
92 | /** |
|
93 | * Fetch all pages statistics data by date. |