4 / 4
Nov 2012

I am looking for a way to automatically get e-Junkie subscribers into i-Contact using the Common Notification URL feature in e-Junkie. iContact only has an API and is telling me that simply plugging in a URL like the following WON'T work:



The URL for the Contacts resource would look like: https://app.icontact.com/icp/a/[accountId]/c/[clientFolderId]/contacts



The URL for the Subscriptions resource would be: https://app.sandbox.icontact.com/icp/a/{accountid}/c/{clientfolderid}/subscriptions/{subscriptionId}



If anyone has integrated the 2 programs successfully using the Common Notification URL only, I sure would love to know. Thanks in advance.

  • created

    Jun '11
  • last reply

    Nov '12
  • 3

    replies

  • 1.9k

    views

  • 4

    users

  • 7

    links

If iContact supports PayPal IPN, they may be able to accept our IPN-style Integration submissions, as long as they don't need to validate the IPN with PayPal (which would fail since we are not PayPal), and as long as they can handle or ignore the extra fields we transmit that are not part of the standard IPN data set. If this is the case, then you could indeed put an iContact IPN URL in your Common Notification URL field or (if you only want them notified for sales of specific products) a product's Payment Variable Information URL field.



If iContact does not accept PayPal IPN, or if they must validate IPNs with PayPal or cannot handle the extra fields we transmit, then you could have a custom "middleman" script programmed for you, which would receive the IPN-style data from us and then retransmit it to iContact in a format they can accept. An "off the shelf" script may already exist to integrate PayPal IPN with iContact, which may need little if any modification to work with our IPN-style submissions. For help with this approach, we can recommend the competent, E-junkie-experienced developers listed in our directory here:

1http://www.e-junkie.com/ej/developer-directory.htm1



You might also consider is our built-in integration with Aweber as an alternative to iContact:

http://www.e-junkie.com/ej/help.integration.htm#aweber

1 year later

For anyone looking to do integration with iContact and e-Junkie, here is some PHP code that you can use (THANKS SO MUCH to e-Junkie and iContact for NOT bothering to get some notes on this somewhere...instead providing a non-answer of here's our list of developers and an integration solution for a completely different service, COOL!)



Of course, you'll need to replace the listid, specialid, and clientid variables with your own (I placed X's in place of mine) You can rip these from the create-a-form HTML feature at iContact) The use of the listid will allow you to stick the purchaser's info in a given list if desired, otherwise you can remove it.



Then set your Common Notification URL to http://www.example.com/icontactpost.php



good luck!





<?

$email = $POST['payeremail'];



$sendic = array('fields_email'=>$email,

'fields_fname'=>$first_name,

'fields_lname'=>$last_name,

'fields_address1'=>$address,

'fields_city'=>$city,

'fields_state'=> $state,

'fields_zip'=>$zip,

'fields_custom1'=>$custom1,

'fields_custom2'=>$custom2,

'listid'=>'XXXXX',

'specialid:XXXXX'=>'SARP',

'clientid'=>'XXXXXX',

'realistid'=>'1',

'doubleopt'=>'0',

'redirect'=>'none',

'errorredirect'=>'none');

$url = '1https://app.icontact.com/icp/signup.php1';

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_POSTFIELDS, $sendic);

$result = curl_exec($ch);

curl_close($ch);

echo $result;



?>

Thank you for providing this information to our other users. Since E-junkie is a basic and low cost one-size-fits-most service we don't have any way to provide full support for every third party service out there although we do try to be as open and flexible as possible to allow for personal customization where it is necessary.