Skip to content

Commit

Permalink
Removed code tags. Just indent.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Curren committed Jan 21, 2009
1 parent 5174823 commit f155b77
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,26 @@ AppName provided by shoeboxed. Shoeboxed will redirect back to the return url on
authenticates. When the user is redirected back to the return_url, a token will be provided in the url
for you to store for future API calls.

<code>
RShoeboxed::Connection.authentication_url("Outright", "http://example.com")
</code>

=== Get a list of all receipts

The api_token is provided by shoeboxed when you setup your API account. The user_token is retrieved by
sending a user to authentication_url so they can log in to shoeboxed. On success, they will be redirected
to the return_url with the user_token.

<code>
connection = RShoeboxed::Connection.new("api_token", "user_token")
receipts = connection.get_receipt_call(Date.new(2008, 1, 1), Date.new(2008, 12, 29))
</code>

=== Get a particular receipt

<code>
connection = RShoeboxed::Connection.new("api_token", "user_token")
receipt = connection.get_category_info_call("2342442424")
</code>

=== Get a list of all categories

<code>
connection = RShoeboxed::Connection.new("api_token", "user_token")
categories = connection.get_category_call
</code>

== INSTALL:

Expand Down

0 comments on commit f155b77

Please sign in to comment.