|
Python Connector for QuickBooks Online Connecting to QuickBooks Online - Python Connector for QuickBooks Online |
|
To establish a connection to a QuickBooks Online database, import the connector and use the connect() method with your connection parameters.
First, import the QuickBooks Online connector module:
import devart.quickbooks as quickbooks
Call the connect() method and obtain a connection object.
response = quickbooks.signin()
my_connection = quickbooks.connect(
CompanyId=response["Company Id"],
RefreshToken=response["Refresh Token"]
)
Replace the example values with your actual connection values.
For more information, see Connection parameters.