php – Google API登录

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了php – Google API登录脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我尝试使用PHP中的 google api class从谷歌分析中获取数据.
我检查了serval google groups,发现大多数时候Curl关闭且SSL也关闭时出现错误,但我检查了PHPinfo()并且booth正在运行.任何人都知道它可能是什么?在我的本地服务器上它正在运行,但在Web服务器上它没有运行.
<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 />
因此,在浏览了更多群组后,一位朋友发现您需要在首次开始提取数据之前批准您的帐户 at this url

脚本宝典总结

以上是脚本宝典为你收集整理的php – Google API登录全部内容,希望文章能够帮你解决php – Google API登录所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: