Module: FreshBooks

Defined in:
lib/freshbooks.rb,
lib/freshbooks/api.rb,
lib/freshbooks/tax.rb,
lib/freshbooks/base.rb,
lib/freshbooks/card.rb,
lib/freshbooks/item.rb,
lib/freshbooks/line.rb,
lib/freshbooks/task.rb,
lib/freshbooks/links.rb,
lib/freshbooks/staff.rb,
lib/freshbooks/budget.rb,
lib/freshbooks/client.rb,
lib/freshbooks/system.rb,
lib/freshbooks/address.rb,
lib/freshbooks/contact.rb,
lib/freshbooks/credits.rb,
lib/freshbooks/expense.rb,
lib/freshbooks/gateway.rb,
lib/freshbooks/invoice.rb,
lib/freshbooks/payment.rb,
lib/freshbooks/project.rb,
lib/freshbooks/autobill.rb,
lib/freshbooks/category.rb,
lib/freshbooks/estimate.rb,
lib/freshbooks/language.rb,
lib/freshbooks/response.rb,
lib/freshbooks/recurring.rb,
lib/freshbooks/connection.rb,
lib/freshbooks/expiration.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/gateway_transaction.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, Address, Api, ApiAccessNotEnabledError, AuthenticationError, Autobill, Base, Budget, Card, Category, Client, Connection, Contact, Credits, Error, Estimate, Expense, Expiration, Gateway, GatewayTransaction, InternalError, InvalidAccountUrlError, InvalidParameterError, Invoice, Item, Language, Line, Links, ListProxy, Page, ParseError, Payment, Project, Recurring, Response, Staff, System, Task, Tax, TimeEntry, UnknownSystemError

Constant Summary collapse

VERSION =

Gem version

'3.0.25'
API_VERSION =

FreshBooks API version

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