Youtube API with PHP
-
essexboyracer
- Posts: 130
- Joined: 02 May 11
- Location: Great Britain
- Trust:
10 Oct 11 6:24 pm
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/
http://www.ibm.com/developerworks/xml/l ... outubeapi/
-
michellerana - Posts: 2131
- Joined: 05 May 09
- Location: Philippines
- Trust:
11 Oct 11 11:43 pm
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. :)
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
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:
12 Oct 11 6:23 am
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
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
-
michellerana - Posts: 2131
- Joined: 05 May 09
- Location: Philippines
- Trust:
12 Oct 11 8:55 pm
Great! I'm glad you were able to figure it out. :) Thanks for sharing. :)
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
Go to this link to start building your profitable affiliate sites now!
http://www.affilorama.com/affiloblueprint/v3
