A gem for connecting to the bill.com API.
Add this line to your application's Gemfile:
gem 'billcom'
And then execute:
$ bundle
Or install it yourself as:
$ gem install billcom
require 'billcom'
Create an options hash with account details:
opt = {:user => "[email protected]", :password => "your_password", :org_id => "org id of your company", :api_key => "api key for your account" }
Set the options on the module:
Billcom.options opt
Billcom.login
Billcom.create_vendor(name, email, external_id)
Billcom.send_vendor_invite(vendor_id, email)
Billcom.create_bill(invoice_number, vendor_id, amount, chart_of_account_id, external_id, invoice_date, due_date)
- 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