not able to Schedule the campaign with API

SOLVED
Highlighted
Occasional Contributor

not able to Schedule the campaign with API

Hi,

 

After send request for scheduling in  form of XML wth help of API, I am getiing a response but still camaign status is in draft mode it's not getting updated. 

Can any please tell me what's the problem with given request? 

Does the problem with schedule time format? my system time formate is UTC/GMT 5:30.

 

Please find below  my request:-

<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns="http://www.w3.org/2005/Atom">
<link href="/ws/customers/nishantc/campaigns/1110545738880/schedules/1" rel="edit" />
<id>http://api.constantcontact.com/ws/customers/nishantc/campaigns/1110545738880/schedules/1</id>
<title type="text">2010-11-13T15:03:35Z</title>
<updated>2010-11-13T20:03:35.000Z</updated>
<author>
<name>Constant Contact
</name>
</author>
<content type="application/vnd.ctct+xml">
<Schedule xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.com/ws/customers/nishantc/campaigns/1110545738880/schedules/1">
<ScheduledTime>2012-07-24T15:15:35.000Z</ScheduledTime>
</Schedule>
</content>
</entry>
request <entry xmlns="http://www.w3.org/2005/Atom"><id>data:,</id><title/><author/><updated>2008-04-16</updated><content type="application/vnd.ctct+xml"><ContactList xmlns="http://ws.constantcontact.com/ns/1.0/"><OptInDefault>false</OptInDefault><Name>testName6</Name><SortOrder>99</SortOrder></ContactList></content></entry>
----> -->---
status 200
response org.apache.http.conn.EofSensorInputStream@536f11

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Trusted Contributor

Re: not able to Schedule the campaign with API

Hello,

 

I also recieved your other request send to our developer email support address (webservices@constantcontact.com), and sent you a reply to request.  Let me know if you don't get that email.

Mark Coleman
Support Engineer

View solution in original post

2 REPLIES 2
Highlighted
Trusted Contributor

Re: not able to Schedule the campaign with API

Hello,

 

I also recieved your other request send to our developer email support address (webservices@constantcontact.com), and sent you a reply to request.  Let me know if you don't get that email.

Mark Coleman
Support Engineer

View solution in original post

Highlighted
Occasional Contributor

Re: not able to Schedule the campaign with API

Error 415 has been resolved. In the RESTClient tool I changed content type to application/atom+xml in th ebody section also. like;-

<content type="application/atom+xml">
<Schedule xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.com/ws/customers/nishantc/campaigns/1110545738880/schedules/1">
<ScheduledTime>2012-07-27T15:15:35.000Z</ScheduledTime>
</Schedule>

But I didn't think, that chages is mandatory because for 2nd campaign I scheduled it withput changing content type in the body section.

 

Note:- and also we have make sure that our request should be HTTPS.

Thanks for support & coorporation. :)

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