Error:


Error calling GET https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A10898875&start-date=2017-12-08&end-date=2017-12-15&metrics=ga%3Avisits&dimensions=ga%3Adate&alt=json&key=AIzaSyAxfRC8v9UQJWwYe3bEPFd2h-h6Rw9Ugt8: (401) Login Required

apiServiceException Object ( [message:protected] => Error calling GET https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A10898875&start-date=2017-12-08&end-date=2017-12-15&metrics=ga%3Avisits&dimensions=ga%3Adate&alt=json&key=AIzaSyAxfRC8v9UQJWwYe3bEPFd2h-h6Rw9Ugt8: (401) Login Required [string:Exception:private] => [code:protected] => 0 [file:protected] => /home/adella/public_html/gapi/google-api-php-client/src/io/apiREST.php [line:protected] => 86 [trace:Exception:private] => Array ( [0] => Array ( [file] => /home/adella/public_html/gapi/google-api-php-client/src/io/apiREST.php [line] => 56 [function] => decodeHttpResponse [class] => apiREST [type] => :: [args] => Array ( [0] => apiHttpRequest Object ( [url:protected] => https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A10898875&start-date=2017-12-08&end-date=2017-12-15&metrics=ga%3Avisits&dimensions=ga%3Adate&alt=json&key=AIzaSyAxfRC8v9UQJWwYe3bEPFd2h-h6Rw9Ugt8 [method:protected] => GET [headers:protected] => [postBody:protected] => [userAgent:protected] => Google Analytics PHP Starter Application google-api-php-client/0.4.7 [responseHttpCode:protected] => 401 [responseHeaders:protected] => Array ( [Vary] => X-Origin Origin,Accept-Encoding [WWW-Authenticate] => Bearer realm="https://accounts.google.com/" [Content-Type] => application/json; charset=UTF-8 [Date] => Fri, 15 Dec 2017 17:33:27 GMT [Expires] => Fri, 15 Dec 2017 17:33:27 GMT [Cache-Control] => private, max-age=0 [X-Content-Type-Options] => nosniff [X-Frame-Options] => SAMEORIGIN [X-XSS-Protection] => 1; mode=block [Server] => GSE [Alt-Svc] => hq=":443"; ma=2592000; quic=51303431; quic=51303339; quic=51303338; quic=51303337; quic=51303335,quic=":443"; ma=2592000; v="41,39,38,37,35" [Accept-Ranges] => none [Transfer-Encoding] => chunked ) [responseBody:protected] => {"error":{"errors":[{"domain":"global","reason":"required","message":"Login Required","locationType":"header","location":"Authorization"}],"code":401,"message":"Login Required"}} [accessKey] => ) ) ) [1] => Array ( [file] => /home/adella/public_html/gapi/google-api-php-client/src/service/apiServiceResource.php [line] => 151 [function] => execute [class] => apiREST [type] => :: [args] => Array ( [0] => apiServiceRequest Object ( [restBasePath] => https://www.googleapis.com/analytics/v3/ [restPath] => data/ga [rpcPath] => /rpc [rpcName] => analytics.data.ga.get [httpMethod] => GET [parameters] => Array ( [ids] => Array ( [type] => string [location] => query [value] => ga:10898875 ) [start-date] => Array ( [type] => string [location] => query [value] => 2017-12-08 ) [end-date] => Array ( [type] => string [location] => query [value] => 2017-12-15 ) [metrics] => Array ( [type] => string [location] => query [value] => ga:visits ) [dimensions] => Array ( [type] => string [location] => query [value] => ga:date ) ) [postBody] => [batchKey] => ) ) ) [2] => Array ( [file] => /home/adella/public_html/gapi/google-api-php-client/src/contrib/apiAnalyticsService.php [line] => 254 [function] => __call [class] => apiServiceResource [type] => -> [args] => Array ( [0] => get [1] => Array ( [0] => Array ( [ids] => ga:10898875 [start-date] => 2017-12-08 [end-date] => 2017-12-15 [metrics] => ga:visits [dimensions] => ga:date ) ) ) ) [3] => Array ( [file] => /home/adella/public_html/gapi/canvalytics/lib/gcTempQuery.php [line] => 16 [function] => get [class] => DataGaServiceResource [type] => -> [args] => Array ( [0] => Array ( [ids] => ga:10898875 [start-date] => 2017-12-08 [end-date] => 2017-12-15 [metrics] => ga:visits [dimensions] => ga:date ) ) ) [4] => Array ( [file] => /home/adella/public_html/gapi/canvalytics/lib/init.php [line] => 11 [args] => Array ( [0] => /home/adella/public_html/gapi/canvalytics/lib/gcTempQuery.php ) [function] => require_once ) [5] => Array ( [file] => /home/adella/public_html/gapi/canvalytics/index.php [line] => 2 [args] => Array ( [0] => /home/adella/public_html/gapi/canvalytics/lib/init.php ) [function] => require_once ) ) [previous:Exception:private] => )
1
Google CANVAlytics

Google CANVAlytics

Results