gpt4 book ai didi

php - GAPI:无法请求帐户数据

转载 作者:行者123 更新时间:2023-12-03 16:02:51 26 4
gpt4 key购买 nike

Exception: GAPI: Failed to request account data. Error: 

" Error 404 (Not Found)!!1 *
{
margin: 0;
padding: 0;
}
html,
code { font: 15px/22px arial,sans-serif }
html {
background: #fff;
color: #222;
padding: 15px;
}
body {
margin: 7% auto 0;
max-width: 390px;
min-height: 180px;
padding: 30px 0 15px;
}
* > body {
background: url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;
padding-right: 205px;
}
p {
margin: 11px 0 22px;
overflow: hidden;
}
ins {
color: #777;
text-decoration: none;
}
a img { border: 0 }
@media screen and (max-width:772px) {
body {
background: none;
margin-top: 0;
max-width: none;
padding-right: 0;
}
}


404. That's an error. The requested URL
/analytics/feeds/accounts/default?start-index=1&max-results=20
was not found on this server. That's all we know. "

最佳答案

是的,GAPI尚未更新很长时间,是的,Google确实提供了第一方PHP库和教程。这既是一团糟,又对于小规模的脚本来说太夸张了。

但是您可以通过以下线程立即修复GAPI:https://code.google.com/p/gapi-google-analytics-php-interface/issues/detail?id=84

特别是,您需要修补GAPI类的头部,并替换为以下内容。

const client_login_url = 'https://www.google.com/accounts/ClientLogin';
const account_data_url = 'https://www.googleapis.com/analytics/v2.4/management/accounts/~all/webproperties/~all/profiles'; //https://www.google.com/analytics/feeds/accounts/default
const report_data_url = 'https://www.googleapis.com/analytics/v2.4/data';


从那里开始,它按预期工作。

关于php - GAPI:无法请求帐户数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16353611/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com