/freshbooks_client

A full coverage Freshbooks API client.

Primary LanguageRuby

Freshbooks API Client

Inch Documentation Build Status Dependency Status Code Climate Gem Version

Usage

# configure a freshbooks client
freshbooks = Freshbooks::Client.new do |config|
  config.api_url = 'https://mycompany.freshbooks.com/'
  config.token = 'API_TOKEN'
end

# OR
freshbooks = Freshbooks::Client.new(api_url: 'https://mycompany.freshbooks.com/', token: 'API_TOKEN')

# access an API endpoint
projects = freshbooks.projects # => #<Freshbooks::API::Project>
projects.list # => { ... }

projects = Freshbooks::API::Project.new(config_options)