Commit 8d4186ce3e977f475fa8fea8b56191628682d166
1 parent
78bfe341
test google lib
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
app/library/App/Bootstrap/RouteBootstrap.php
| @@ -10,10 +10,6 @@ use PhalconRest\Api; | @@ -10,10 +10,6 @@ use PhalconRest\Api; | ||
| 10 | 10 | ||
| 11 | use Google_Client; | 11 | use Google_Client; |
| 12 | use Google_Service_AnalyticsReporting; | 12 | use Google_Service_AnalyticsReporting; |
| 13 | -use Google_Service_AnalyticsReporting_DateRange; | ||
| 14 | -use Google_Service_AnalyticsReporting_Metric; | ||
| 15 | -use Google_Service_AnalyticsReporting_ReportRequest; | ||
| 16 | -use Google_Service_AnalyticsReporting_GetReportsRequest; | ||
| 17 | 13 | ||
| 18 | class RouteBootstrap implements BootstrapInterface | 14 | class RouteBootstrap implements BootstrapInterface |
| 19 | { | 15 | { |
| @@ -79,5 +75,11 @@ class RouteBootstrap implements BootstrapInterface | @@ -79,5 +75,11 @@ class RouteBootstrap implements BootstrapInterface | ||
| 79 | }); | 75 | }); |
| 80 | } | 76 | } |
| 81 | 77 | ||
| 78 | + function getReport($analytics, $metric, $alias) { | ||
| 82 | 79 | ||
| 80 | + // Замена на свой идентификатор представления, напр. XXXX. | ||
| 81 | + $VIEW_ID = "119240817"; | ||
| 82 | + | ||
| 83 | + return $VIEW_ID; | ||
| 84 | + } | ||
| 83 | } | 85 | } |
| 84 | \ No newline at end of file | 86 | \ No newline at end of file |