From e367fb507d7e5d7336bbab3c9295c0ec961cafb7 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 10 Feb 2017 17:40:30 +0200 Subject: [PATCH] dynamic dateRange --- app/library/App/Resources/GaResource.php | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/app/library/App/Resources/GaResource.php b/app/library/App/Resources/GaResource.php index c32f113..88423b7 100644 --- a/app/library/App/Resources/GaResource.php +++ b/app/library/App/Resources/GaResource.php @@ -31,6 +31,11 @@ class GaResource extends ApiResource { ->endpoint(ApiEndpoint::get('/', 'getAction') ->allow(AclRoles::USER) ->description('Returns data from Google Analytics Api') + ->exampleResponse([ + 'start' => '30daysAgo', + 'end' => 'today', + 'metric' => 'user,sessions' + ]) ) ; -- libgit2 0.21.4