CData Python Connector for Marketo

Build 25.0.9454

Establishing a Connection

The objects available within our connector are accessible from the "cdata.marketo" module. To use the module's objects directly:

  1. Import the module as follows:
    import cdata.marketo as mod
  2. 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.
For additional connection options, see Connection String Options.

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:

  1. Go to the Admin tab.
  2. Click on the LaunchPoint option.
  3. Select the service and click on View Details.
  4. Marketo displays a window that shows the authentication credentials. Use "Client Id" as the value for OAuthClientId and "Client Secret" for OAuthClientSecret.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9454