我试图从 GAPI 获取内容,它有时可以工作,但有时会引发此错误:
I am trying to fetch content from the GAPI it works sometimes but the other times it throws this error:
异常 GAPI:无法验证用户.错误:"https://developers.google.com/accounts/docs/AuthForInstalledApps ">
Exception GAPI: Failed to authenticate user. Error: "https://developers.google.com/accounts/docs/AuthForInstalledApps "
我浏览了所有答案,但找不到解决方案.我之前尝试使用这两个链接:
I browsed through all the answers but couldn't find a solution. I tried using both of these links previously:
https://accounts.google.com/DisplayUnlockCaptcha
https://www.google.com/settings/security/lesssecureapps
以前可以用,但现在不行了,有人可以帮忙吗?
It used to work but not anymore, can someone help?
验证用户失败
表示您的身份验证有问题.
Means there is something wrong with your authentication.
GAPI 自 2009 年以来一直未开发. 它似乎还使用了在 2015 年 4 月 20 日停止/关闭的客户端登录.您不能再通过 Google Analytics API 使用客户端登录,您需要切换到 Oauth2 或服务帐户.因此,该项目的作者需要修复他的代码,它似乎是一个开源项目,因此您可能会为他修复它.
GAPI hasn't been worked on since 2009. It also appears to use client login which was discontinued / shutdown on April 20 2015. You can no longer use client login with Google Analytics API, you need to switch to Oauth2 or a service account. So either the author of that project needs to fix his code, it appears to be an open source project so you could probably fix it for him.
在我看来 Google PHP 客户端库 可能是更好的解决方案.
In my opinion Google PHP client library probably a better solution.
教程:
这篇关于GAPI:无法验证用户.永久修复 PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!