Build a mailing list? Want to blog for a living? Then you're gonna need some content. Find out where to get it and the best way to use it here.

Youtube API with PHP

essexboyracer
Posts: 105
Joined: 02 May 11
Trust:

Youtube API with PHP

Anyone here using the Youtube API to pull in relevant videos to their site with PHP? Would love to know if this is worthwhile before i embark on another huge learning experience, e.g.

http://www.ibm.com/developerworks/xml/l ... outubeapi/
  • 1
Site Admin
michellerana
Posts: 1874
Joined: 05 May 09
Trust:
I think no one will be able to relate with that question as most of us here are not programmers / developers. But I believe there are plugins that can do that for you. :)
  • 1
Michelle
Customer Support
=========================

Limited time special - Pathway to Passive for $37: http://www.affilorama.com/pathwaytopassive
 
essexboyracer
Posts: 105
Joined: 02 May 11
Trust:
It's actually quite easy, as it turns out. Using FeedWordPress you can add the following:

https://gdata.youtube.com/feeds/api/use ... ME/uploads

(changing USERNAME for the youtube user)

The only thing I can't figure out is how to access certain pieces of data in the feed by using an xPath expression and Wordpress Custom Fields

EDIT: Accessing other parts of the feed may be a limitation of FeedWordPress, as I noticed the thumbnail attribute is apparently defined in a different XML namespace, not entirely sure how that works but there we go. The ibm link I gave above manages to access it ok
  • 1
Site Admin
michellerana
Posts: 1874
Joined: 05 May 09
Trust:
Great! I'm glad you were able to figure it out. :) Thanks for sharing. :)
  • 1
Michelle
Customer Support
=========================

Limited time special - Pathway to Passive for $37: http://www.affilorama.com/pathwaytopassive
 

This topic was started on Oct 10, 2011 and has been closed due to inactivity. If you want to discuss this topic further, please create a new forum topic.

cron