A small ruby library for accessing information from http://freeagentcentral.com
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
.gitignore
Gemfile
README
Rakefile
free_agent.gemspec

README

FreeAgent API
=============

This is just a simple wrapper around the FreeAgent[1] API. The motivation is that I wanted to be able to deal with multiple FreeAgent accounts; most other approaches use ActiveResource-esque mappings that link Projects (for example) to a single account.

Example use:

  require 'rubygems'
  require 'free_agent'
  
  Lazyatom = FreeAgent::Company.new("mydomain", "me@email.com", "mypassword")
  
  # All my contacts
  Lazyatom.contacts.all
  
  # All my unpaid invoices
  Lazyatom.invoices.reject { |i| i.paid? }
  
  # All the timeslips for a project
  Lazyatom.projects.first.timeslips.all

It's early days yet, but this is a nice start.


Links
-----

[1]: http://www.freeagentcentral.com/?referrer=31h0wcs9



Copyright (c) 2010 James Adam
Plenty of help from Free Rangers, incl. Luke Redpath
 
The MIT License
 
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
 
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.