Google API Login

I am trying to extract data from Google Analytics using google api class in php. I checked google servo groups and found out that an error occurs in most cases when Curl is turned off and SSL is turned off, but I checked in phpinfo () and the stand works. Does anyone know what this could be? It works on my local server, but it does not work on the web server.

<br /> <b>Fatal error</b>: Uncaught exception 'Exception' with message 'GAPI: Failed to authenticate user. Error: &quot;Error=BadAuthentication Url=https://www.google.com/accounts/ServiceLogin?service=analytics#Email=mail Info=WebLoginRequired &quot;' in /home/express/public_html/loggedIn/gapi.class.php:418 Stack trace: #0 /home/express/public_html/loggedIn/gapi.class.php(62): gapi-&gt;authenticateUser('mail', 'pw') #1 /home/express/public_html/loggedIn/request.php(10): gapi-&gt;__construct('mail', 'pw') #2 {main} thrown in <b >/home/express/public_html/loggedIn/gapi.class.php</b> on line <b>418</b><br /> 

enter image description here

+7
source share
1 answer

So, after looking at more groups, a friend found out that you need to approve your account before you begin to receive data for the first time at this URL

+24
source

All Articles