forked from bcurren/freshbooks.rb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
58 lines (37 loc) · 1.71 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
= Todo
Please send me a message if you are interested in contributing. Here is a quick overview of some things I'd like to add to the gem.
Merge in forked versions of this gem (any idea what forks are worth while?)
Provide a way to retrieve the error message with actions beside list are called.
Make ListProxy optional on list actions. Some people have valid reason to deal with pagination.
Add oAuth
Add webhooks
More tests including integration tests
Write some documentation and examples
Launch an official 3.0 (maybe call it 4.0) version of the gem
Post the official version to rubygems
Ensure rubygems aren't required for this gem.
= About
FreshBooks.rb is a Ruby interface to the FreshBooks API. It exposes easy-to-use classes and methods for interacting with your FreshBooks account.
NOTE: These examples are out of date and need to be updated. I will be writing documentation for all the updates soon and will be pushing the changes to rubyforge in the near future.
= Examples
Initialization:
FreshBooks::Base.establish_connection('sample.freshbooks.com', 'mytoken')
Updating a client name:
clients = FreshBooks::Client.list
client = clients[0]
client.first_name = 'Suzy'
client.update
Updating an invoice:
invoice = FreshBooks::Invoice.get(4)
invoice.lines[0].quantity += 1
invoice.update
Creating a new item
item = FreshBooks::Item.new
item.name = 'A sample item'
item.create
= License
This work is distributed under the MIT License. Use/modify the code however you like.
= Download
sudo gem install bcurren-freshbooks.rb
= Credits
FreshBooks.rb is written and maintained by Ben Curren at Outright.com. Ben Vinegar was the original developer and we have taken over maintenance of the gem from now on.