Closed GoogleCodeExporter closed 8 years ago
It is giving me this error:
Fatal error: Uncaught exception 'apiServiceException' with message 'Error
calling GET
https://www.googleapis.com/analytics/v3/management/accounts/~all/webproperties?k
ey=AIzaSyDXb3pEfUyhMOtnBT8bEfD_HghmbjtyJfY: (401) Invalid Credentials' in
/home/domainz-www/devi.domainz.se/public/google-api-php-client/src/io/apiREST.ph
p:86 Stack trace: #0
/home/domainz-www/devi.domainz.se/public/google-api-php-client/src/io/apiREST.ph
p(56): apiREST::decodeHttpResponse(Object(apiHttpRequest)) #1
/home/domainz-www/devi.domainz.se/public/google-api-php-client/src/service/apiSe
rviceResource.php(186): apiREST::execute(Object(apiServiceRequest)) #2
/home/domainz-www/devi.domainz.se/public/google-api-php-client/src/contrib/apiAn
alyticsService.php(61): apiServiceResource->__call('list', Array) #3
/home/domainz-www/devi.domainz.se/public/wp-content/themes/bp-domainz/auth-page.
php(54):
ManagementWebpropertiesServiceResource->listManagementWebproperties('~all') #4
/home/domainz-www/devi.domainz.se/public/wp-includes/template-loader.php(43):
include( in
/home/domainz-www/devi.domainz.se/public/google-api-php-client/src/io/apiREST.ph
p on line 86
Please draw some light where I am doing things in wrong way. Thanks
Original comment by test123....@gmail.com
on 28 Feb 2012 at 8:32
I have the same problem but i have no solution .
Original comment by blastmed...@gmail.com
on 24 May 2012 at 12:10
I'm afraid that 'apiAnalyticsService' is now 'Google_AnalyticsService'.
Try replacing:
$service = new apiAnalyticsService($client);
with
$service = new Google_AnalyticsService($client);
Original comment by meann...@gmail.com
on 23 Feb 2013 at 5:18
Thanks Meannate!
Original comment by ianbar...@google.com
on 22 Mar 2013 at 1:52
Original issue reported on code.google.com by
test123....@gmail.com
on 28 Feb 2012 at 7:56