cancel
Showing results for 
Search instead for 
Did you mean: 

Campaign Monitor Integration

Occasional Organizer

Campaign Monitor Integration

Hello,

 

Is there anyway to sync Constant Contact Data (lists, list members, custom fields etc) with Campaign Monitor?

 

So they would mirror from CC to CM, and say it got updated via a Cron Job?

 

Please help!

 

Thanks

 

3 REPLIES 3
CTCT Employee

Re: Campaign Monitor Integration

Hi,

 

I apologize, but I'm not aware of any Constant Contact-Campaign Monitor integration.  We haven't written any integrations to them, and I would be a little surprised if they had written an integration to us, so you'd be looking for third party integrations between the 2.  The only way I know to accomplish what you're looking for would be 1. hire a developer to use the Constant Contact and Campaign Monitor API's to write a custom integration, or 2. manually export your Constant Contact and Campaign Monitor contacts to a CSV or XLS document. merge them, and then import the result into both accounts.

 

Best Regards,

Shannon W.

API Support Specialist

Occasional Organizer

Re: Campaign Monitor Integration

Hello,

 

Thanks for your response.

 

I am using a Constant Contact PHP API Wrapper: Constant Contact PHP Code Library - integrationservic.es

 

I am familular with the Campaign Monitor API also.

 

I am trying to export ALL contacts into a CSV using this wrapper but I get a vague error message.

 

"Operation failed: Invalid Request - There are many possible causes for this error, but most commonly there is a problem with the structure or content of XML your application provided. Carefully review your XML. One simple test approach is to perform a GET on a URI and use the GET response as an input to a PUT for the same resource. With minor modifications, the input can be used for a POST as well."

 

Ideally I want to export ALL contacts from each individual list and then import them elsewhere (CM)

 

Can you tell me of an easier way to export all contacts on a list basis? Or point me in the direction of another PHP wrapper that can fulfill my requirements.

 

You can view the wrapper working here with various examples: http://bit.ly/XBaHcH

 

Thanks

 

 

 

CTCT Employee

Re: Campaign Monitor Integration

Hi,

 

We don't support the integrationservic.es PHP, but if you use our PHP wrapper located here,  you can use the following code to generate an export contacts activity.

 

<?php

session_start ();
require_once 'ConstantContact.php';
require_once 'config.php';

$ConstantContact = new ConstantContact("oauth2", $apiKey, $username, $accessToken);

//Update your username and list ID in the string below
$exportString = "activityType=EXPORT_CONTACTS&fileType=CSV&exportOptDate=true&exportOptSource=true&exportListName=true&sortBy=DATE_DESC&columns=FIRST%20NAME&columns=LAST%20NAME&listId=http%3A%2F%2Fapi.constantcontact.com%2Fws%2Fcustomers%2Fusername%2Flists%2F1";  

$export = $ConstantContact->bulkAddContacts($exportString);

?>

 

 

This generates an activity in the account to export the contacts, which usually takes a few minutes.  The response from our server when you create the activity will return a link to download the file that is created.

 

Best Regards,

Shannon W.

API Support Specialist