GithubHelp home page GithubHelp logo

scottbarkman / django-quickbooks-online Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grue/django-quickbooks-online

0.0 2.0 0.0 142 KB

A pluggable django app that provides easy integration with Quickbooks' latest API both Online and Desktop

License: MIT License

Python 99.37% HTML 0.63%

django-quickbooks-online's Introduction

========================================================================================== django-quickbooks-online - An app for communicating with Quickbooks via the Quickbooks API

Build Status

This project was forked from django-quickbooks, originally developed by hiidef, with contributions from setaris.

django-quickbooks-online handles communicating with the Quickbooks API. Using this app, you can perform CRUD operations on any of the object classes supported by both Quickbooks Desktop and Quickbooks Online.

django-quickbooks-online knows very little about the actual API schema.

Installation

  1. Add 'quickbooks' to INSTALLED_APPS
  2. Include quickbooks.urls from main urls files.
  3. If you'd like access to the quickbooks token from templates, add quickbooks.context_processors.token to TEMPLATE_CONTEXT_PROCESSORS.
  4. Add a settings dictionary. OAUTH_CALLABACK_URL can be a string or callable. If it's a callable, it'll be passed the request context.:
       QUICKBOOKS = {
            'CONSUMER_KEY': 'consumer_key_from_quickbooks',
            'CONSUMER_SECRET': 'consumer_secret_from_quickbooks',
            'OAUTH_CALLBACK_URL': string_or_callable,
            'ACCESS_COMPLETE_URL': 'string'
        }
  1. You'll need to set up you Keyczar keychain now:

     mkdir /path/to/keys
     keyczart create --location=/path/to/keys --purpose=crypt --name="A name"
     keyczart addkey --location=/path/to/keys --status=primary
    
  2. Now add the key dir to your settings file:

     ENCRYPTED_FIELD_KEYS_DIR = "/path/to/keys"
    
  3. Add the setup javascript (example below assumes your namespace is 'quickbooks' and that you have a template context variable 'base_url' (e.g., http://example.com):

     <script type="text/javascript" src="https://appcenter.intuit.com/Content/IA/intuit.ipp.anywhere.js"></script>
     <script>intuit.ipp.anywhere.setup({
         menuProxy: '{{ base_url }}{% url "quickbooks:quickbooks.views.blue_dot_menu" %}',
         grantUrl: '{{ base_url }}{% url "quickbooks:quickbooks.views.request_oauth_token" %}'
     });</script>
    
  4. Add the connect button HTML (perhaps in user preferences):

     <ipp:connectToIntuit></ipp:connectToIntuit>
    
  5. Add the blue dot menu HTML (must be visible on every page once connected):

     <ipp:blueDot></ipp:blueDot>
    

django-quickbooks-online's People

Contributors

grue avatar hpk avatar p1l0t avatar rcsheets avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.