lady-ady / 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

Google Analytics API: Hardcode username and password #219

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 issue reported on code.google.com by janboy22...@gmail.com on 11 Nov 2012 at 1:26

GoogleCodeExporter commented 9 years ago
We do not recommend hardcoding details. If you use oAuth 2.0 and request 
offline access you can receive a refresh token as part of the accessToken 
object, which you can use to access the service without the user having to sign 
in again.

Original comment by ianbar...@google.com on 22 Mar 2013 at 4:14

GoogleCodeExporter commented 9 years ago
Hello, do you have any details on the hardcoding method? I am NOT interested in 
the token/refresh method.

Google should learn from GitHub how to design an API

Original comment by fulldec...@gmail.com on 1 Oct 2013 at 3:01

GoogleCodeExporter commented 9 years ago
please tell me how to recieve a refresh token I also want to make a cron job 
with gets data from google drive

Original comment by hod.gdc....@gmail.com on 5 Dec 2013 at 5:27