class_docstr: A class for handling connections and interactions with Quickbooks API.
class_docstr_tok: ["A","class","for","handling","connections","and","interactions","with","Quickbooks","API","."]
code: def __init__(self, name=None, **kwargs):
      super().__init__(name)
  
      args = kwargs.get("connection_data", {})
  
      self.connection_args = {}
      handler_config = Config().get("quickbooks_handler", {})
      for k in [
          "client_id",
          "client_secret",
          "refresh_token",
          "realm_id",
          "environment",
      ]:
          if k in args:
              self.connection_args[k] = args[k]
          elif f"QUICKBOOKS_{k.upper()}" in os.environ:
              self.connection_args[k] = os.environ[
                  f"QUICKBOOKS_{k.upper()}"
              ]
          elif k in handler_config:
              self.connection_args[k] = handler_config[k]
  
      self.quickbooks = None
      self.is_connected = False
  
      accountso = AccountsTable(self)
      self._register_table("accountso", accountso)
      purchases = PurchasesTable(self)
      self._register_table("purchases", purchases)
      bills_payments = BillPaymentsTable(self)
      self._register_table("bills_payments", bills_payments)
      vendors = VendorsTable(self)
      self._register_table("vendors", vendors)
      bills = BillsTable(self)
      self._register_table("bills", bills)
      employees = EmployeesTable(self)
      self._register_table("employees", employees)
  
file_path: mindsdb/mindsdb/integrations/handlers/quickbooks_handler/quickbooks_handler.py
imports: import os
  import pandas
  from qbosdk import QuickbooksOnlineSDK
  from mindsdb.integrations.libs.api_handler import APIHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse, RESPONSE_TYPE
  from mindsdb.utilities.config import Config
  from mindsdb.utilities import log
  from mindsdb_sql import parse_sql
  from .quickbooks_table import AccountsTable, PurchasesTable, BillPaymentsTable, VendorsTable, BillsTable, EmployeesTable
label_desc: Use image node_id 1 to create a new QuickbooksHandler object from inherited base classes: APIHandler with example: obj = QuickbooksHandler(name)