Lovefilm Filmstream Plugin for WordPress

18 Apr 2010

Something I’ve thought I’d like to have on my site for a while is a list of movies that I’ve recently seen and some brief opinions on them. I’m not entirely sure how I would go about this for films I see at the cinema, or whether I could muster the stamina to review every single film I’ve watched, but a recent television upgrade has now meant I’ve got the opportunity to do this.

Our television came with a years subscription to lovefilm, which means I can now track our past film watching history. At four blu rays a month, that’s quite a lot of films over the course of the year.

Love Film have recently opened up their doors with an api and developer area (which unfortunately is not particularly active at the moment). Anyway – their documentation is pretty thorough and has made the process of creating a wordpress plugin to display my past rentals really simple. You can see some example output of it on my site over here.

You can grab the plugin over here. It’s authenticated by oauth (for which you’ll require php on your blog host to be compiled with oauth enabled) and so will bounce you over to lovefilm to ask for access to your account, but after that will update on a daily basis. Just click “Fetch Items” on the filmstream admin page and stick <!--filmstream_content--> in any page to display a table containing all your past rentals. There’s no options to speak of right now, but I’m sure I’ll be extending it in the future.

Tagged films, lovefilm, movies, PHP, plugin,
comments powered by Disqus