diff --git a/app/library/App/Resources/GaResource.php b/app/library/App/Resources/GaResource.php index 2a7d03d..92b3f8c 100644 --- a/app/library/App/Resources/GaResource.php +++ b/app/library/App/Resources/GaResource.php @@ -31,37 +31,21 @@ class GaResource extends ApiResource { ->allow(AclRoles::USER) ->description('Returns data from Google Analytics Api. https://developers.google.com/analytics/devguides/reporting/core/dimsmets') ->exampleResponse([ - 'reports' => [ - 'columnHeader' => [ - 'metricHeaderEntries' => [ - 'name' => 'ga:users', - 'type' => 'INTEGER' - ] - ], - 'data' => [ - 'rows' => [ - 'metrics' => [ - 'values' => '777' - ], - ], - 'totals' => [ - 'values' => '777' - ], - 'rowCount' => '1', - 'minimums' => [ - 'values' => '777' - ], - 'maximums' => [ - 'values' => '777' - ], - ] - ], + "name" => "rukzachok.com.ua", + "(Other)" => "646", + "Direct" => "482", + "Display" => "134", + "Organic Search" => "2278", + "Paid Search" => "2989", + "Referral" => "128", + "Social" => "29" ]) ->exampleRequest([ 'get params' => [ 'required' => [], 'optional' => [ - 'view_id' => 'GA VIEW_ID', + 'user_id' => '1', + 'view_id' => 'GA VIEW_ID', 'start' => '30daysAgo / 2015-03-01', 'end' => 'today', 'metric' => 'users,sessions', -- libgit2 0.21.4