Ruby API wrapper for the fastbill.com API
NOTE: This is work in progress and not yet available as a gem.
Add this line to your application's Gemfile:
gem 'fastbillr'
And then execute:
bundle
Or install it yourself as:
gem install fastbillr
Fastbillr::Configuration.configure do |config|
config.email = "your@email.com"
config.api_key = "yourverysecretapikey"
end
Fastbillr::Customer.all
Fastbillr::Customer.find_by_country("de")
Fastbillr::Customer.find_by_id(12)
Fastbillr::Customer.search("foo")
There are different required fields depending on e.g. customer_type. Please have a look at the fastbill api documentation.
Fastbillr::Customer.create(last_name: "foo", first_name: "bar")
rake
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request