Page 1 of 1

Youtube Feed Help

Posted: Thu Mar 14, 2013 7:46 pm
by FrederickGeek8
I want to integrate this into a website except I have video responses that I also want to include. If I use the usual get_videos function, everything work perfectly except when there is a video response, the url will be set to something like:
[syntax=text]http://gdata.youtube.com/feeds/api/videos/6PZ5lz2zxbM[/syntax]
Now if I go to
[syntax=text]http://www.youtube.com/watch?v=6PZ5lz2zxbM[/syntax]
then it is the video that I responded to. My question is, how do I have the link set to my response video??

I also want to add that all the other information is right for the video, just not the url

Re: Youtube Feed Help

Posted: Thu Mar 14, 2013 8:17 pm
by Temor

Re: Youtube Feed Help

Posted: Thu Mar 14, 2013 10:11 pm
by FrederickGeek8
No. Basically I want to use the Youtube Feed tutorial here, but because I have a video response, for that video, the url is set to the video I responded to.

Re: Youtube Feed Help

Posted: Thu Mar 14, 2013 10:23 pm
by Temor
I have no idea how to fix that, sorry. But during my googling ( it's a word now ) I found an article saying that the 3.0 API is easier to use than the 2.0 version. So if you haven't tried that, I would suggest it.

Re: Youtube Feed Help

Posted: Fri Mar 15, 2013 12:51 am
by FrederickGeek8
EDITED (original can be found here)
Now that I have solved how to get the url can I just update the xml with something like:
[syntax=php]$videos[$key]->url = $xml->entry[$key]->link[1]['href'];[/syntax]

EDIT AGAIN: Wow... I feel so good... I got everything figured out!!!! :D