Repository is archived
No commit activity in last 3 years
No release in over 3 years
A Sinatra extension for building Quickbooks Online Apps.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

QuickBooks-Sinatra-App

Sinatra extension for building QuickBooks Online Apps

Installing

gem install quickbooks-sinatra-app

Put your QuickBooks Online API credentials in a .env file:

QBO_KEY=...
QBO_SECRET=...

Example Usage

require 'sinatra/quickbooks-sinatra-app'

class SinatraApp < Sinatra::Base
  register Sinatra::Quickbooks

  get '/' do
    erb "<script type='text/javascript' src='https://appcenter.intuit.com/Content/IA/intuit.ipp.anywhere.js'></script>
         <script>
           intuit.ipp.anywhere.setup({menuProxy: '/path/to/blue-dot', grantUrl: '#{base_url}/auth/quickbooks'});
         </script>
         <ipp:connectToIntuit></ipp:connectToIntuit>"
  end
end

For an example including making a few api calls see the /example