Categories
Development

Recent Videos

Thanks to the API provided by YouTube I was able to use a script to make REST calls from my channel on YouTube to automatically post my most recent videos uploaded on this blog.

The REST call is simple:

http://www.youtube.com/api2_rest?method=youtube.videos.list_by_user&dev_id=id&user=user

It returns the following:

  • author
  • id
  • title
  • length in seconds
  • average rating
  • number of ratings
  • description
  • number of views
  • time of upload
  • number of comments
  • tags
  • url
  • thumbnail url
  • embed status

Then I wrote a script using the YUI Connection Manager to call it into the page.

I’ve gotta do some CSS styling still, but the basic functionality is there.

Leave a Reply

Your email address will not be published. Required fields are marked *