Module: FreshBooks

Defined in:
lib/freshbooks.rb,
lib/freshbooks/base.rb,
lib/freshbooks/item.rb,
lib/freshbooks/line.rb,
lib/freshbooks/task.rb,
lib/freshbooks/links.rb,
lib/freshbooks/staff.rb,
lib/freshbooks/client.rb,
lib/freshbooks/expense.rb,
lib/freshbooks/invoice.rb,
lib/freshbooks/payment.rb,
lib/freshbooks/project.rb,
lib/freshbooks/category.rb,
lib/freshbooks/estimate.rb,
lib/freshbooks/response.rb,
lib/freshbooks/recurring.rb,
lib/freshbooks/connection.rb,
lib/freshbooks/list_proxy.rb,
lib/freshbooks/time_entry.rb,
lib/freshbooks/schema/mixin.rb,
lib/freshbooks/xml_serializer.rb,
lib/freshbooks/schema/definition.rb,
lib/freshbooks/xml_serializer/serializers.rb

Overview


FreshBooks.rb - Ruby interface to the FreshBooks API

Copyright © 2007-2008 Ben Vinegar (www.benlog.org)

This work is distributed under an MIT License: www.opensource.org/licenses/mit-license.php


Usage:

FreshBooks.setup(‘sample.freshbooks.com’, ‘mytoken’)

clients = FreshBooks::Client.list client = clients client.first_name = ‘Suzy’ client.update

invoice = FreshBooks::Invoice.get(4) invoice.lines.quantity += 1 invoice.update

item = FreshBooks::Item.new item.name = ‘A sample item’ item.create

Defined Under Namespace

Modules: Schema, XmlSerializer Classes: AccountDeactivatedError, ApiAccessNotEnabledError, AuthenticationError, Base, Category, Client, Connection, Error, Estimate, Expense, InternalError, InvalidAccountUrlError, InvalidParameterError, Invoice, Item, Line, Links, ListProxy, Page, ParseError, Payment, Project, Recurring, Response, Staff, Task, TimeEntry, UnknownSystemError

Constant Summary collapse

VERSION =

Gem version

'3.0.12'
API_VERSION =

FreshBooks API version

'2.1'
SERVICE_URL =
"/api/#{API_VERSION}/xml-in"