M
M
MakFatum2012-03-28 11:08:36
Google
MakFatum, 2012-03-28 11:08:36

GAPI - Authentication Issues?

Getting data from google analytics reports to the site using GAPI - gapi-google-analytics-php-interface ( code.google.com/p/gapi-google-analytics-php-interface )
Since the beginning of March, authentication has failed: a
Fatal error is thrown : Uncaught exception 'Exception' with message 'GAPI: Failed to authenticate user. Error: ""' in /home/site/public_html/ga_test/gapi.class.php:418 Stack trace: #0 /home/site/public_html/ga_test/gapi.class.php(62): gapi->authenticateUser( user, pass') #1 /home/site/public_html/ga_test/stat.php(10): gapi->__construct( user, pass') ') #2 {main} thrown in /home/site/public_html/ga_test /gapi.class.php on line 418
Everything is fine on the hosting: curl ssl is installed, access is open, logins/passwords are correct
Could this be due to some changes in Google, such as two-step verification?
code.google.com/p/gapi-google-analytics-php-interf...
The guys on the GAPI support page already wrote to someone

"You need to create an application specific password in order to access it
https://accounts.google.com/b/0/IssuedAuthSubToken...
Create a new password by typing Analytics in the input box and use that password, it will work ..”

Can anyone share some advice on the situation?
A problem from another opera: when setting up two-step authentication on an account, Kazakhstan is not in the list of available countries when specifying a cell phone number. :) And I can’t get through to Google in any way.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alexmuz, 2012-03-28
@alexmuz

What is not clear in the text you quoted?
If you have two-factor authentication enabled, then you need to create a password for your application at accounts.google.com/b/0/IssuedAuthSubTokens#accesscodes and use it in scripts, and not your usual account password!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question