我嘗試使用php中的google api class從谷歌分析中獲取數據。 我檢查了僕人谷歌組,發現大多數情況下,當Curl關閉和SSL關閉時出現錯誤,但我檢查了phpinfo()和booth正在運行。任何人都知道它可能是什麼?在我的本地服務器上運行,但在網絡服務器上它沒有運行。Google API登錄
<br />
<b>Fatal error</b>: Uncaught exception 'Exception' with message 'GAPI: Failed to authenticate user. Error: "Error=BadAuthentication
Url=https://www.google.com/accounts/ServiceLogin?service=analytics#Email=mail
Info=WebLoginRequired
"' in /home/express/public_html/loggedIn/gapi.class.php:418
Stack trace:
#0 /home/express/public_html/loggedIn/gapi.class.php(62): gapi->authenticateUser('mail', 'pw')
#1 /home/express/public_html/loggedIn/request.php(10): gapi->__construct('mail', 'pw')
#2 {main}
thrown in <b
>/home/express/public_html/loggedIn/gapi.class.php</b> on line <b>418</b><br />
獲取數據你應該嘗試的官方客戶端庫,而不是之前批准您的帳戶。 https://code.google.com/p/google-api-php-client/ – Eduardo