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: 130
Joined: 02 May 11
Location: Great Britain
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/
 

  • 0
Site Admin
michellerana
 
Posts: 2131
Joined: 05 May 09
Location: Philippines
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. :)
 

  • 0
Want a step-by-step training program in affiliate marketing? Affiloblueprint is a "hand-holding" course that will will show you how to build a site, drive traffic to it, and monetize it.

Go to this link to start building your profitable affiliate sites now!
http://www.affilorama.com/affiloblueprint/v3
 
essexboyracer
 
Posts: 130
Joined: 02 May 11
Location: Great Britain
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
 

  • 0
Site Admin
michellerana
 
Posts: 2131
Joined: 05 May 09
Location: Philippines
Trust:

Great! I'm glad you were able to figure it out. :) Thanks for sharing. :)
 

  • 0
Want a step-by-step training program in affiliate marketing? Affiloblueprint is a "hand-holding" course that will will show you how to build a site, drive traffic to it, and monetize it.

Go to this link to start building your profitable affiliate sites now!
http://www.affilorama.com/affiloblueprint/v3