open_qb_connection Method
Opens a persistent connection to QuickBooks.
Syntax
def open_qb_connection() -> None: ...
Remarks
Invoking on_open_qb_connection will open a persistent connection to QuickBooks. After invoking on_open_qb_connection, all requests such as get, add, etc. will use the established connection until close_qb_connection is invoked.
The effect of on_open_qb_connection is to increase performance. If on_open_qb_connection is not invoked, a connection to QuickBooks will automatically be created and destroyed each time the class communicates with QuickBooks. Using on_open_qb_connection will be faster, particularly in the case of automatic login.
After on_open_qb_connection is invoked, QuickBooks will issue a connection ticket, and it will be stored in qb_connection_string. When close_qb_connection is invoked the ticket will be invalidated, and any further attempts to use it will fail.
Be sure to invoke close_qb_connection when you have finished communicating with QuickBooks. Leaving an open QuickBooks connection may lock out other integrated applications, affect QuickBooks performance, or cause other problems.