Commit 46647ae28bb341852407d9a2ff844894c8cd6110
1 parent
76b75f99
docs example request test
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
app/library/App/Resources/GaResource.php
... | ... | @@ -41,6 +41,15 @@ class GaResource extends ApiResource { |
41 | 41 | ], |
42 | 42 | 'full_docs' => 'https://developers.google.com/analytics/devguides/reporting/core/dimsmets', |
43 | 43 | ]) |
44 | + ->exampleRequest([ | |
45 | + 'example' => [ | |
46 | + 'view_id' => 'GA VIEW_ID', | |
47 | + 'start' => '30daysAgo / 2015-03-01', | |
48 | + 'end' => 'today', | |
49 | + 'metric' => 'user,sessions', | |
50 | + 'dimension' => 'source,browser' | |
51 | + ] | |
52 | + ]) | |
44 | 53 | ) |
45 | 54 | ; |
46 | 55 | ... | ... |