GAPI: Failed to authenticate user. Permanent PHP fix

I'm trying to get content from GAPI, which it works sometimes, but other times it throws this error:

GAPI Exception: Failed to authenticate user. Error: " https://developers.google.com/accounts/docs/AuthForInstalledApps "

I have looked through all the answers but could not find a solution. Earlier I tried to use both of these links:

https://accounts.google.com/DisplayUnlockCaptcha

https://www.google.com/settings/security/lesssecureapps

It worked but no more, can someone help?

+3


source to share


1 answer


Failed to authenticate user

There is something wrong with your authentication.

GAPI has n't been working since 2009. It also appears to be using a customer login that was canceled / terminated on April 20, 2015 . You can no longer use a client login with the Google Analytics API, you need to switch to Oauth2 or a service account. So either the author of this project has to fix his code, it seems to be an open source project, so you could fix it for him.



In my opinion the Google PHP client library is probably the best solution.

tutorials :

+4


source







All Articles