pownraj-anubavam / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Access our analytics data instead of redirecting user to login screen #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi

How can I access my own analytics data via analytics API, without login in each 
time. (i.e. hard code the username and password in a PHP script so when someone 
visit the page they can see our analytics data without login in to a google 
accout)

Thanks In Advance

Eranda

Original issue reported on code.google.com by mmrstu...@gmail.com on 29 Jul 2012 at 1:13

GoogleCodeExporter commented 9 years ago
I need something like this, too.  I want to hardcode the username and password 
into the app, because the script i'm writing is an cronjob script. It runs 
every day at the morning and sends an email which attach an auto-generated PDF 
file with the analytics reporting details we need.  How can I solve my problem 
with the API PHP Client?

Original comment by janboy22...@gmail.com on 10 Nov 2012 at 1:32

GoogleCodeExporter commented 9 years ago
You can login via oAuth 2.0, request offline access, and store the refresh 
token, which will allow access without the user logging in. 

Original comment by ianbar...@google.com on 22 Mar 2013 at 2:34