The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

XML API To Email Campaign

Highlighted
Occasional Participant

XML API To Email Campaign

Hi,

 

I am new here, My motive here is to create email campaign using XML API from my another site.

 

I will be creating newsletter with it.

 

I have seen RSS XML to Email campaign in Mailchimp, But does constantcontact provide such a feature to

create email campaign using XML API URL?

 

Example

 

My url will be

 

http://mysite.com/api/call.php

 

Which will give me info in tags , Like

<product_title>

<image_url_1>

<product_price>

 

Etc , Please suggest

5 REPLIES 5
Highlighted
Employee

Re: XML API To Email Campaign

Hey Scott,

 

You can do that but it would require the programming to be done on your side and converted to HTML before passed into our API.  All the HTML also needs to be encoded. 

 

Please let me know if you have any other questions.

Ryan Davis
Quality Engineer
Highlighted
Occasional Participant

Re: XML API To Email Campaign

 

Hey

 

Thanks for swift reply.

Ok so no way to parse xml api to email template as tags on your end!

 

Can you suggest me how could i encode my html page ?

 

 

That may be useful for me !

 

Thanks alot again.

Highlighted
Employee

Re: XML API To Email Campaign

Hey Scott,

 

It all depends on which programming language your using.  You could replace all characters with < to &lt; and > to &gt;.  There are special methods in various languages like java, c# and php to do that part for you. 

 

 

Ryan Davis
Quality Engineer
Highlighted
Occasional Participant

Re: XML API To Email Campaign

Hi , i am using PHP .

 

 

Highlighted
Employee

Re: XML API To Email Campaign

Hey Scott,

 

The method to do that with php is very easy to use.

 

htmlspecialchars($string_with_html);

 You can read more about it here.

Ryan Davis
Quality Engineer
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured