|
|||
|
I'm trying to set up some YouTube integration stuff on one of my sites and I thought I'd familiarize myself with the gdata stuff by playing with the YouTube demo samples that come with the gdata libraries.
One of the functions in the demo gets a feed of all the related videos for a given video ID. This function does not work anymore when I simply modify it to get Video Responses instead of Related Videos by changing this: $ytQuery->setFeedType('related', $videoId); to this: $ytQuery->setFeedType('responses', $videoId); (and looking at the libraries' source, 'responses' does indeed seem to be a valid parameter here so that shouldn't be a problem for as far as I can tell) The original function returns a valid feed, the modified one throws this error message: Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 400' in /home/.marthena/reese_015/ipower.movielol.org/zendtest/Zend/Gdata/App.php:286 Stack trace: #0 /home/.marthena/reese_015/ipower.movielol.org/zendtest/Zend/Gdata/App.php(132): Zend_Gdata_App::import('http://gdata.yo...', Object(Zend_Http_Client), 'Zend_Gdata_YouT...') #1 /home/.marthena/reese_015/ipower.movielol.org/zendtest/Zend/Gdata.php(110): Zend_Gdata_App->getFeed('http://gdata.yo...', 'Zend_Gdata_YouT...') #2 /home/.marthena/reese_015/ipower.movielol.org/zendtest/Zend/Gdata/YouTube.php(136): Zend_Gdata->getFeed('http://gdata.yo...', 'Zend_Gdata_YouT...') #3 /home/.marthena/reese_015/ipower.movielol.org/zendtest/testresponses.php(73): Zend_Gdata_YouTube->getVideoFeed(Object(Zend_Gdata_YouTube_VideoQuery )) #4 /home/.marthena/reese_015/ipower.movielol.org/zendtest/testresponses.php(224): getVideoResponses() #5 {main} thrown in /home/.marthena/reese_015/ipower.movielol.org/zendtest/Zend/Gdata/App.php on line 286 Any ideas anyone? |
![]() |
| Thread Tools | |
| Display Modes | |
|
|