Establishing a Connection
The objects available within our connector are accessible from the "cdata.marketo" module. To use the module's objects directly:
- Import the module as follows:
import cdata.marketo as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("URL=https://MyMarketoURL.mktorest.com/;OAuthClientId=MyOAuthClientId;OAuthClientSecret=MyOAuthClientSecret;")
Connecting to Marketo
The following connection options are required when connecting to Marketo.- URL: The URL of the REST API Service. You can locate this in Admin -> Integration -> Web Services -> REST API. Example values: https://123-abc-456.mktorest.com/ or https://123-abc-456.mktorest.com/rest.
- OAuthClientId: The OAuth Client ID associated with your custom service.
- OAuthClientSecret: The OAuth Client Secret associated with your custom service.
Obtaining OAuth Credentials
Before obtaining OAuth credentials you need to create a custom service if you do not already have one. To do so follow the instructions provided in Creating a Custom Service.
To obtain OAuth credentials for a custom service:
- Go to the Admin tab.
- Click on the LaunchPoint option.
- Select the service and click on View Details.
- Marketo displays a window that shows the authentication credentials. Use "Client Id" as the value for OAuthClientId and "Client Secret" for OAuthClientSecret.