ConstantContact Adapter
This adapter provides access to the ConstantContact API through SQL commands, including Contact Lists and Campaigns.
This adapter requires a subscription to the ContantContact platform.
OAuth Configuration
This adapter requires OAuth to be configured.
show steps-
Obtain an API Key and API Secret from ConstantContact and save in a Config Setting in Enzo
In this initial step, you must configure ConstantContact so that you can obtain an API Key and API Secret. Once you have this information, create a new Config Setting in Enzo Manager with this information, and save the config. Mark it as the default setting to make things easier. -
Execute GetAuthUrl to obtain the correct URL and paste it in a browser to authenticate
Start SQL Server Management Studio (SSMS), connect to Enzo directly, and execute the GetAuthUrl method. The GetAuthUrl method returns a URL that you can copy and paste in a browser; this URL is constructed dynamically. Once the authentication flow is completed, you will get a blank webpage; the URL bar on the browser will contain a return code. Copy the complete URL provided before going to the next step. -
Copy the ResponseCode provided and execute the GetTokens command passing the Response Code
The GetTokens method requires the complete URL provided in the previous step. This will extract the response code and return an Access Token. Note that the URL is only valid for a period of time. Copy the AccessToken in memory. -
Copy the AccessToken and RefreshToken provided by the previous call and save them into the same Config Setting
These tokens must be saved in the Config Setting previously created.
Configuration Settings
Name | Description | Default |
---|---|---|
Boolean _isDefault | Make this the default configuration. Defaults to true if configName is already the default. | |
String APIKey | The API Key used for authentication of ConstantContact api | |
String APISecret | The API Secret used for authentication of ConstantContact api | |
String accessToken | The accessToken used for authentication of ConstantContact api | |
String refreshToken | The refreshToken used for authentication of ConstantContact api when expire accessToken |
Handlers
CreateCampaign
campaigns |
Create a campaign
details
Arguments
SQL Callexec ConstantContact.CreateCampaign Http Call/bsc/constantcontact/createcampaign Output ColumnsThis call does not return data. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CreateContact
contacts |
Create a contact
details
Arguments
SQL Callexec ConstantContact.CreateContact @addressType='home', @email='test005@gmail.com',@listIds='1f53e032-a633-11ea-8339-d4ae527b6fcc',@phone='8899776655',@createSource='contact' Http Call/bsc/constantcontact/createcontact Output ColumnsThis call does not return data. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CreateContactList
contactlist |
Create a Contact List
details
Arguments
SQL Callexec ConstantContact.CreateContactList @name='test',@favorite=false,@description='test description' Http Call/bsc/constantcontact/createcontactlist Output ColumnsThis call does not return data. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DeleteCampaign
campaigns |
Delete a Campaign
details
Arguments
SQL Callexec ConstantContact.DeleteCampaign '1' Http Call/bsc/constantcontact/deletecampaign Output ColumnsThis call does not return data. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DeleteContact
contacts |
Delete a contact
details
Arguments
SQL Callexec ConstantContact.DeleteContact '1' Http Call/bsc/constantcontact/deletecontact Output ColumnsThis call does not return data. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DeleteContactList
contactlist |
Delete a contact list
details
Arguments
SQL Callexec ConstantContact.DeleteContactList '1' Http Call/bsc/constantcontact/deletecontactlist Output ColumnsThis call does not return data. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
getAuthUrl
|
Get auth url
details
ArgumentsSQL CallEXEC ConstantContact.getAuthUrl Http Call/bsc/constantcontact/getauthurl Output Columns
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GetContactList
contactlist |
Get all contact lists
details
ArgumentsSQL Callexec ConstantContact.GetContactList Http Call/bsc/constantcontact/getcontactlist Output Columns
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
getRefreshTokens
|
Get refresh token
details
Arguments
SQL CallEXEC ConstantContact.getRefreshTokens '' Http Call/bsc/constantcontact/getrefreshtokens Output Columns
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GetSingleCampaign
|
Get single campaign
details
Arguments
SQL Callexec ConstantContact.GetSingleCampaign Http Call/bsc/constantcontact/getsinglecampaign Output Columns
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
getTokens
|
Get authentication token
details
Arguments
SQL CallEXEC ConstantContact.getTokens 'https://localhost/?code=9a21hlWJ&scope=full%7Cyw854.infusionsoft.com&state=' Http Call/bsc/constantcontact/gettokens Output Columns
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ListAllCampaigns
campaigns |
List all campaigns
details
Arguments
SQL Callexec ConstantContact.ListAllCampaigns Http Call/bsc/constantcontact/listallcampaigns Output Columns
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ListAllContacts
contacts |
List all contacts
details
Arguments
SQL Callexec ConstantContact.ListAllContacts Http Call/bsc/constantcontact/listallcontacts Output Columns
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UpdateCampaign
campaigns |
Update a campaign
details
Arguments
SQL Callexec ConstantContact.UpdateCampaign '11233','Test Campaign 3','This is test campaign','Herve','hroggero@bluesyntaxconsulting.com','hroggero@bluesyntaxconsulting.com','This is test content forHTML','This is test content from text',@city='test city',@state='MA',@country='US',@address='test address',@organizationName='Test Org',@postalCode='01444' Http Call/bsc/constantcontact/updatecampaign Output ColumnsThis call does not return data. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UpdateContact
contacts |
Update a contact
details
Arguments
SQL Callexec ConstantContact.UpdateContact '2e4950f4-af07-11ea-8862-d4ae527599c4',@addressType='home', @email='test009@gmail.com',@listIds='1f53e032-a633-11ea-8339-d4ae527b6fcc',@phone='8899776655' Http Call/bsc/constantcontact/updatecontact Output ColumnsThis call does not return data. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UpdateContactList
contactlist |
Update a Contact List
details
Arguments
SQL Callexec ConstantContact.UpdateContactList @id='111',@name='test',@favorite=true,@description='test description' Http Call/bsc/constantcontact/updatecontactlist Output ColumnsThis call does not return data. |