加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – Google API登录

发布时间:2020-12-13 18:27:09 所属栏目:PHP教程 来源:网络整理
导读:我尝试使用php中的 google api class从谷歌分析中获取数据. 我检查了serval google groups,发现大多数时候Curl关闭且SSL也关闭时出现错误,但我检查了phpinfo()并且booth正在运行.任何人都知道它可能是什么?在我的本地服务器上它正在运行,但在Web服务器上它
我尝试使用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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读