gpt4 book ai didi

php - zend gdata picasa php api 停止工作

转载 作者:搜寻专家 更新时间:2023-10-31 20:38:00 25 4
gpt4 key购买 nike

我已经使用 Zend Gdata 好几年了。

然而,今天当我不变的代码执行下面的命令时

$query = $this->gp->newAlbumQuery();

我收到以下错误

exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 403 Authorization required' in /shared/zend/ZendFramework-1.12.13/library/Zend/Gdata/App.php:717 Stack trace: #0 /shared/zend/ZendFramework-1.12.13/library/Zend/Gdata.php(221): Zend_Gdata_App->performHttpRequest('GET', 'https://picasaw...', Array, NULL, NULL, NULL) #1 /shared/zend/ZendFramework-1.12.13/library/Zend/Gdata/App.php(883): Zend_Gdata->performHttpRequest('GET', 'https://picasaw...', Array) 

我以为是认证失败。我检查过,我的凭据都很好,以下验证成功,无一异常(exception)

$client = Zend_Gdata_ClientLogin::getHttpClient($this->config['username'], 
$this->config['password'],
Zend_Gdata_Photos::AUTH_SERVICE_NAME);

我看到 Zend Gdata 仍然是 1.12.13 版本。然而,最近的发布日期是 2015 年 5 月 20 日。所以我使用这个新版本进行了更新。但是错误还是一样。

所以我只知道我已通过身份验证,但是 newAlbumQuery 方法引发了上述异常。

还有其他人在使用 Zend Gdata 时遇到过这个问题吗?有没有人找到修复或解决方法?

最佳答案

Zend_Gdata 使用 ClientLogin自 2012 年 4 月 20 日起弃用并于 2015 年 4 月 20 日关闭。此代码将不再有效,您需要切换到使用 Oauth2。

关于php - zend gdata picasa php api 停止工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30483007/

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