I got bored one evening, so I hacked together the beginnings of an API library for latakoo Flight. Currently it’s available in three four tasty flavours – PHP, Python, Ruby and C# .NET / Mono.

The libraries are minimal but functional; they let you perform both anonymous and authenticated queries against the latakoo API endpoint, but I’ve only had time to add method wrappers for a few of api calls. Feel free to fork the project to help flesh these out!

Hopefully these libraries will make it easier to get the power of latakoo behind your project, and be sure to check out Latakoo to find out how to share video on the Internet.

Happy hacking!

» API Documentation
» Github Project Page

Another itch scratched, I would like to introduce a really simple Open Graph plugin for WordPress.

This plugin adds open graph headers to posts and pages on a per post basis.

It has no native interface, instead it listens out for og:* headers as input in the Custom Fields section of WordPress’ edit page and adds the ones it recognises to the page header as meta tags.

Once installed you will be able to add the following tags to posts:

  • og:title (defaults to page title)
  • og:type (defaults to “article”)
  • og:image (URL, no default)
  • og:url is also used, but this is automatically filled in

I wrote this in about an hour so it isn’t all that fancy, and was designed to solve a specific problem for me. Hopefully it’ll be useful to someone else out there.

Feel free to leave comments and send in any patches!

» Plugin page on Github

Building on what I was talking about last week, I’ve spent a little time tidying up and genericising the simple regression test framework I often find myself using and have open sourced it over on Github.

So without further ado, I’d like to introduce the Really Simple Test Framework!

This is a PHP command line application, so you’ll need the php5-cli module installed.

Usage

php test.php [-p path/to/tests] [-t HelloWorldTest]

So for example, to run all the tests in the sub directory /tests/

php test.php

To specify another directory to look in for tests

php test.php -p /path/to/my/tests

To run a specific test only, specify it by its CLASS NAME

php test.php -t MyClassTest

You can specify multiple tests to run…

php test.php -t MyClassTest -t AnotherTest

Have a butchers at the README.txt for more details on writing your own tests!

» Github Project Page