zend gdata picasa php api停止工作 [英] zend gdata picasa php api stopped working
问题描述
然而,今天当我不变的代码执行以下命令时:
$ query = $ this-> gp-> newAlbumQuery();
我收到以下错误:
在/shared/zend/ZendFramework-1.12.13/library/Zend/Gdata/App.php:717中显示'Zend_Gdata_App_HttpException'消息'Expected response code 200,got 403 Required required'/shared/zend/ZendFramework-1.12.13/library/Zend/Gdata/App.php:717堆栈跟踪:#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 ...' ,数组)
我认为这是因为身份验证失败。我查了一下,我的凭证都没问题,以下验证成功,没有出现异常情况。
$ 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。 p>
I have used Zend Gdata for several years now.
However, today when my unchanged code executes the following command
$query = $this->gp->newAlbumQuery();
I receive the following error
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)
I thought it would be because authentication had failed. I checked and my credentials are all fine and the following authenticates successfully without an exception
$client = Zend_Gdata_ClientLogin::getHttpClient($this->config['username'],
$this->config['password'],
Zend_Gdata_Photos::AUTH_SERVICE_NAME);
I saw that Zend Gdata is still on version 1.12.13. However there is a recent release date of 20/05/2015. So i did an update using this new release. But the error is still the same.
So all i know is that i am authenticated, but the newAlbumQuery
method is raising the above exception.
Is anyone else experiencing this problem with Zend Gdata? Has anyone found a fix or workaround?
Zend_Gdata uses ClientLogin which was deprecated as of April 20, 2012 and turned off on April 20 2015. This code will not longer work you need to switch to using Oauth2.
这篇关于zend gdata picasa php api停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!