Establishing a Connection
The objects available within our connector are accessible from the "cdata.quickbooks" module. To use the module's objects directly:
- Import the module as follows:
import cdata.quickbooks as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("User=test;Password=test;URL=http://localhost:8166;")
Connecting to QuickBooks
The connector makes requests to QuickBooks through the QuickBooks Gateway. The QuickBooks Gateway runs on the same machine as QuickBooks and accepts connections through a lightweight, embedded Web server. The server supports SSL/TLS, enabling users to connect securely from remote machines. The first time you connect, you will need to authorize the connector with QuickBooks. For more information, refer to our Using the QuickBooks Gateway guide.