CData Python Connector for SendGrid

Build 24.0.9060

Establishing a Connection

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

  1. Import the module as follows:
    import cdata.sendgrid 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("APIKey=abc123;")

You must use an API key to authenticate through the SendGrid connector.

Obtaining an API Key

To obtain an API key, follow the steps below:

  1. Log into SendGrid.
  2. Click Settings.
  3. Click API keys.
  4. Click Create API Key.
  5. Choose the Permissions the API Key should have, either Full Access or Restricted Access. The API key is then displayed.

NOTE: If you want access to Email events, you must purchase the Email Activity History add-in of SendGrid. If using a Restricted Access key, you must give it the messages.read and email_activity.read scopes.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060