Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zend gdata picasa php api stopped working

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?

like image 496
user184604 Avatar asked Aug 13 '26 16:08

user184604


1 Answers

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.

like image 155
DaImTo Avatar answered Aug 15 '26 09:08

DaImTo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!