Openfooty

This is a Ruby wrapper for the Openfooty API.

Installation

As a gem:

sudo gem install openfooty

In your Gemfile: gem 'openfooty', '0.3.2'

Get a Openfooty API key

Sign up for a Openfooty API key: http://www.footytube.com/openfooty/signup.php

Usage

Configure

>> Openfooty::Client.new(:api_key => "your_api_key")

Examples

>> openfooty = Openfooty::Client.new
>> team_squad = @client.team("getSquad", :team_id => 2281).openfooty.players.player
=> team_squad.first.should == 'B. Bradley'

>> stats = openfooty.match("getStats", :match_id => 781512).openfooty.match
>> stats.home_team.assists.assist.last.player_name
=> "T. Cahill"

Contact me if you have any suggestions and feel free to fork it!

Copyright (c) 2009 Johnny Khai Nguyen, released under the MIT license