SimpleTax (http://gosimpletax.com) is the free, web-based tax software that helps you easily find the most savings and ensures you file an accurate tax return, no matter how complicated your affairs are.
This Ruby library allows you to integrate your application with SimpleTax via it's REST API. It relies on OAuth2 for authorising access to a user's account.
Add this line to your application's Gemfile:
gem 'simpletax' And then execute:
$ bundle Or install it yourself as:
$ gem install simpletax require'simpletax'simpletax=SimpleTax::Client.newredirect_url: 'YOUR_CALLBACK_URL',client_id: 'CLIENT_ID',client_secret: 'CLIENT_SECRET'simpletax.authorize_url# => "https://secure.gosimpletax.com/o/authorize/?client_id=CLIENT_ID&redirect_uri=YOUR_CALLBACK_URL&response_type=code"# Authorize it in the browser with the given urlsimpletax.fetch_token'CODE_GOTTEN_FROM_THE_CALLBACK_URL'simpletax.add_income(2500,description: 'Customer invoice')simpletax.add_expense(200,description: 'Photoshop license')# Now check the result on your SimpleTax account'- Fork it ( http://github.com/ismaelga/simpletax/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request