Updating a client name:
clients = FreshBooks::Client.list client = clients client.first_name = 'Suzy' client.update
Updating an invoice:
invoice = FreshBooks::Invoice.get(4) invoice.lines.quantity += 1 invoice.update
Creating a new item
item = FreshBooks::Item.new item.name = 'A sample item' item.create
This work is distributed under the MIT License. Use/modify the code however you like.
FreshBooks.rb is distributed as a gem via Rubyforge. The easiest way to install it is like so:
gem install freshbooks
Alternatively, you can download it from the Rubyforge project page.
The FreshBooks.rb Git repository is available on GitHub.
Last updated August 2008.