Skip to content

ismaelga/simpletax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby gem for SimpleTax API

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.

Installation

Add this line to your application's Gemfile:

gem 'simpletax'

And then execute:

$ bundle

Or install it yourself as:

$ gem install simpletax

Usage

require 'simpletax'

simpletax = SimpleTax::Client.new redirect_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 url

simpletax.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'

Contributing

  1. Fork it ( http://github.com/ismaelga/simpletax/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Ruby gem for SimpleTax API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages