LunarFly, LLC Logo

FreshBooks RESTful Wrapper for ColdBox

Links

Usage/Syntax

<cfscript>
   var freshbooks = getPlugin("freshbooks.freshbooks",true).init();
   freshbooks.setAPIURL("https://{SUB_DOMAIN_HERE}.freshbooks.com/api/2.1/xml-in");
   freshbooks.setAPIToken("API_TOKEN_HERE");
   queryResults = freshbooks.clientList(folder='active',returnFormat='query',returnFields="first_name,last_name,organization,client_id");
</cfscript>

Documentation

You will need to enable your API by logging into your Freshbooks account, click on "My Account" at the top right, then click on the sub-menu 'FreshBooks API'. Listed there will be your API URL and your Authentication Token.

Upcoming Features

Release Notes

Support