Commit d34fce511c00a0ac1cd32022e6bba9aef6be1dcf
1 parent
fbd4cc5f
docs example request test
Showing
1 changed file
with
8 additions
and
5 deletions
Show diff stats
app/library/App/Resources/GaResource.php
| ... | ... | @@ -59,11 +59,14 @@ class GaResource extends ApiResource { |
| 59 | 59 | ]) |
| 60 | 60 | ->exampleRequest([ |
| 61 | 61 | 'get params' => [ |
| 62 | - 'view_id' => 'GA VIEW_ID', | |
| 63 | - 'start' => '30daysAgo / 2015-03-01', | |
| 64 | - 'end' => 'today', | |
| 65 | - 'metric' => 'user,sessions', | |
| 66 | - 'dimension' => 'source,browser' | |
| 62 | + 'required' => [], | |
| 63 | + 'optional' => [ | |
| 64 | + 'view_id' => 'GA VIEW_ID', | |
| 65 | + 'start' => '30daysAgo / 2015-03-01', | |
| 66 | + 'end' => 'today', | |
| 67 | + 'metric' => 'user,sessions', | |
| 68 | + 'dimension' => 'source,browser' | |
| 69 | + ] | |
| 67 | 70 | ] |
| 68 | 71 | ]) |
| 69 | 72 | ) | ... | ... |