Establishing a Connection
The objects available within our connector are accessible from the "cdata.oraclesalescloud" module. In order to use the module's objects directly, the module must first be imported as below:
import cdata.oraclesalescloud 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:
mod.connect("HostURL=https://my.host.oraclecloud.com; Username=abc123; Password=abcdef;")
Oracle Sales uses Basic authentication over SSL; after setting the following connection properties, you are ready to connect:
- Username: Set this to the user name that you use to log into your Oracle Cloud service.
- Password: Set this to your password.
- HostURL: Set this to the Web address (URL) of your Oracle Cloud service.