php - Google API login -
i try fetch data google analytics using google api class in php. checked serval google groups , found out error comes of time when curl off , ssl off too, checked in phpinfo() , booth running. idea be? on local server it's running, on webserver it's not running.
<br /> <b>fatal error</b>: uncaught exception 'exception' message 'gapi: failed authenticate user. error: "error=badauthentication url=https://www.google.com/accounts/servicelogin?service=analytics#email=mail info=webloginrequired "' in /home/express/public_html/loggedin/gapi.class.php:418 stack trace: #0 /home/express/public_html/loggedin/gapi.class.php(62): gapi->authenticateuser('mail', 'pw') #1 /home/express/public_html/loggedin/request.php(10): gapi->__construct('mail', 'pw') #2 {main} thrown in <b >/home/express/public_html/loggedin/gapi.class.php</b> on line <b>418</b><br />
so after browsing more groups, friend found out need approve account before start fetching data first time at url
Comments
Post a Comment