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 check_connection(self) -> StatusResponse:
      response = StatusResponse(False)
  
      try:
          quickbooks = self.connect()
          quickbooks.accounts.get()
          logger.info(quickbooks.accounts.get())
          response.success = True
  
      except Exception as e:
          response.error_message = (
              f"Error connecting to Quickbooks API: {e}. "
          )
          logger.error(response.error_message)
  
      if response.success is False and self.is_connected is True:
          self.is_connected = False
  
      return response
  
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 3 for calling the QuickbooksHandler obj's underlying member method code with example usage: obj.check_connection() and returns: response