Establishing a Connection
The objects available within our connector are accessible from the "cdata.freshbooks" module. In order to use the module's objects directly, the module must first be imported as below:
import cdata.freshbooks as mod
From there, the connect() method can be called from the connector object to establish a connection using an appropriate connection string, such as the below:
Authenticating to FreshBooks
FreshBooks uses the OAuth authentication standard. To authenticate using OAuth, you will need to create an app to obtain the OAuthClientId, OAuthClientSecret, and CallbackURL connection properties. See Using OAuth Authentication for an authentication guide.