Django and Intuit Quickbooks api Quickstart

05 March 2020

I recently had a client that wanted a primer on the quickbooks api for oauth. Below find a short video tutorial of how to copy, configure and run a django api that uses login with quickbooks. I also go over the oauth flow between intuits servers and the django api endpoints.

Overview

  1. Make an intuit app
  2. Clone https://github.com/IntuitDeveloper/SampleOAuth2_UsingPythonClient
  3. Copy the client id and secret into settings.py
  4. Copy the django callback endpoint into the intuit app
  5. run the Django
  6. click the sign in with quickbooks button
  7. authorize your app
  8. Done. Now you can perform priviledged calls from the django app against the quickbooks api

Some pitfalls

  1. The oauth redirect uri needs to point to your django app. The uri quickbooks provides is useful as well and we play with it in the video.
  2. The django example uses app namespaces on the urls. If you want to reverse a url by name, e.g., {% url <some url name> %} that needs to be written as {% url 'app:qbo_request' %}.

If you need help solving your business problems with software read how to hire me.



comments powered by Disqus