responseText for existing Campaign

Highlighted
Occasional Contributor

responseText for existing Campaign

Hello,

 

using xmlhttp request I am trying to fetch the available campaigns and parse the responseText so that I could display them in a Grid. Although I am getting responseText, I am not able to parse it. I tried responseXml but gets undefined error. In the responseText, I am able to see all my existing campaigns. Can you suggest me what I am missing here?

4 REPLIES 4
Highlighted
CTCT Employee

Re: responseText for existing Campaign

Hi Anupriya,

 

I am looking into this for you but it make take some time because I am not familiar with this process either.

 

Thank you,

Ryan Davis
Quality Engineer
Highlighted
CTCT Employee

Re: responseText for existing Campaign

Hey Anupryia,

 

Can you post your code so I can see how the information is gathered?

 

Thanks,

Ryan Davis
Quality Engineer
Highlighted
Occasional Contributor

How to update a campain

Hello

Can Anybody help me to update a campaign. Which method(POST or PUT) should i use to update a campaign?

I am getting Error 415: Media type not supported while trying to update.

Thankyou

Highlighted
CTCT Employee

Re: How to update a campain

Hello,

 

You would get a 415 error if you are trying to do an incorrect call to a URI.  If you are updating a campaign, you must do a PUT HTTPS call with the correct XML to the campaigns URI.  More information about this can be found here.

 

If you have any questions please let me know.

 

Sincerely,

Benjamin Soder
NOC Analyst
Constant Contact
Developer Portal

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

Visit Page

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured