• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
FreshBooks API
 

FreshBooks API

on

  • 1,022 views

FreshBooks API overview for HackDays

FreshBooks API overview for HackDays

Statistics

Views

Total Views
1,022
Views on SlideShare
1,019
Embed Views
3

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 3

http://www.linkedin.com 3

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    FreshBooks API FreshBooks API Presentation Transcript

    • The API
    • How It Works XML Request: Invoice.list POST POST POST POST POST POST POST POST POST FreshBooksYou XML Response: Invoices
    • What a Request Looks Like <request  method="[RESOURCE].[METHOD]">        [parameters] </request>Some Resources Some Methods Invoice Create Clients Get Estimate Update Expense List Payment Delete
    • AuthenticationPost to HereYour Credentials
    • Sending a Requestcurl -u b6b5d45904881a749de87656699933ee:Xhttps://darthvader.freshbooks.com/api/2.1/xml-in -d<request  method="invoice.create">        <invoice>                <client_id>2</client_id>                <lines>                        <line>                                <name>Power  converters</name>                                <unit_cost>35.00</unit_cost>                                <quantity>3</quantity>                        </line>                </lines>        </invoice></request>
    • What a Successful Response Looks Like<!-­‐-­‐?xml  version="1.0"  encoding="utf-­‐8"?-­‐-­‐><response  xmlns="http://www.freshbooks.com/api/"  status="ok">    <invoice_id>115236</invoice_id></response>
    • What a Failed Response Looks Like<!-­‐-­‐?xml  version="1.0"  encoding="utf-­‐8"?-­‐-­‐><response  xmlns="http://www.freshbooks.com/api/"  status="fail">    <error>Invalid  value  for  field  client_id.                    Client  does  not  exist.</error>    <code>40060</code>    <field>client_id</field></response>
    • Client Libraries refreshbooks ruby-freshbooksMore resources & sample code at http://developers.freshbooks.com
    • Here’s a Google Chrome Extension for Experimenting with our APIhttp://developers.freshbooks.com/helper-libraries/