Project

simpletax

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby API client to gosimpletax.com
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0

Runtime

 Project Readme

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