@@ 84-94 (lines=11) @@ | ||
81 | * |
|
82 | * @throws Exception |
|
83 | */ |
|
84 | public function getBooksViewsStatistics($groupBy, $periodFrom, $periodTo) |
|
85 | { |
|
86 | return $this->client->getResponse( |
|
87 | $this->getUrl(__FUNCTION__), |
|
88 | array( |
|
89 | 'group_by' => $groupBy, |
|
90 | 'period_range_from' => $periodFrom, |
|
91 | 'period_range_to' => $periodTo, |
|
92 | ) |
|
93 | )['data']; |
|
94 | } |
|
95 | ||
96 | /** |
|
97 | * Получение данных для запроса через API |
|
@@ 161-171 (lines=11) @@ | ||
158 | * |
|
159 | * @throws Exception |
|
160 | */ |
|
161 | public function getJournalsViewsStatistics($groupBy, $periodFrom, $periodTo) |
|
162 | { |
|
163 | return $this->client->getResponse( |
|
164 | $this->getUrl(__FUNCTION__), |
|
165 | array( |
|
166 | 'group_by' => $groupBy, |
|
167 | 'period_range_from' => $periodFrom, |
|
168 | 'period_range_to' => $periodTo, |
|
169 | ) |
|
170 | )['data']; |
|
171 | } |
|
172 | ||
173 | /** |
|
174 | * Статистика посещаемости |
|
@@ 184-194 (lines=11) @@ | ||
181 | * |
|
182 | * @throws Exception |
|
183 | */ |
|
184 | public function getUsersVisitsStatistics($groupBy, $periodFrom, $periodTo) |
|
185 | { |
|
186 | return $this->client->getResponse( |
|
187 | $this->getUrl(__FUNCTION__), |
|
188 | array( |
|
189 | 'group_by' => $groupBy, |
|
190 | 'period_range_from' => $periodFrom, |
|
191 | 'period_range_to' => $periodTo, |
|
192 | ) |
|
193 | )['data']; |
|
194 | } |
|
195 | ||
196 | /** |
|
197 | * Доступные пакеты книг |