Hi,
Anyone can help us regarding the Scheduling and Sending Campaigns through integration of the Constant Contact API in PHP script? How to achieve this functionality?
Our Login name is: bookafishingcharter
Hello,
Is there anyone to help us regarding this Schedulinh and Sending emails.
Hello,
The API that allows scheduling email campaigns to be sent must get prior approval. Please email our AppConnect Team here, and they will contact you with the information on how to go forward. Once you receive approval, we will also send you our documentation on how to do this with our API.
If you do need additional help, or have additional questions at that time, feel free to let us know.
Regards,
Hello,
Could you provide us the total PHP script to cover all the functionality (which are listed in the URL: http://developer.constantcontact.com/) of the Constant Contact API?
Any kind of help here, will be highly appreciated.
Thanks & Regards,
Laxmi Prasad Mishra
Hello,
We have PHP sample code, which you can find here, as well as a php library that you can get here. The sample code provides examples on how to use our API in php. The php library has a very extensive wiki, which you can find here, and gives you sample code on how to get started with using it.
If you run into any issues, or have specific questions on how to use parts of our API, please let me know and I can definitely help you get started!
Regards,
Hello Benjamin,
When we are going to schedule a campaign through PHP script, it is returning an error message as shown below:
Constant Contact HTTP Request Exception: HTTP Status 403 - Access is denied
So, would you please look into this matter that why we are getting this error message?
Does it need any prior approval from Constant Contact? If so, then could you ask to the AppConnect team for getting the approval to us?
Please find below our Partner API details:
Login/Partner Name: *REMOVED FOR SECURITY REASONS
API Key: *REMOVED FOR SECURITY REASONS
I am looking forward for your reply.
Thanks & Regards
Laxmi Prasad Mishra
Hello,
Is there anyone who can help us, regarding to resolve the error issue of Scheduling and Sending an Email Campaign? We are getting the following error message, when, we are going to schedule a Email Campaign through PHP script.
Constant Contact HTTP Request Exception: HTTP Status 403 - Access is denied
Please find below our Partner API details:
Login/Partner Name: *REMOVED FOR SECURITY REASONS
API Key: *REMOVED FOR SECURITY REASONS
Any help from your side will be highly appreciated.
Thanks & Regards
Laxmi Prasad Mishra
Hi,
I got the approval for Scheduling and sending email campaign using API, but when I tried it I am getting ar error 'The requested URL returned error: 415’. Please let me know what I am missing.
Thanks,
-PM
This was handled via email support, but I wanted to point out the solution to the problem for anyone else who runs into this.
The problem was the URI that the request was being made to. The resource in question did not support a POST request and was correctly returning a 415 error message. Once we switched to the resource URI, the POST request was accepted and the email campaign was able to be scheduled.
<?xml version='1.0' encoding='UTF-8'?> <entry xmlns="http://www.w3.org/2005/Atom">
<link href="/ws/customers/username/campaigns/1111489467563/schedules/2" rel="edit" />
<id>http://api.constantcontact.com/ws/customers/username/campaigns/1111489467563/schedules/2</id>
<title type="text">GC Product Webinar - Jan 7, 2002</title>
<updated>2010-11-13T20:03:35.000Z</updated>
<author>
<name>username</name>
</author>
<content type="application/vnd.ctct+xml">
<Schedule xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.com/ws/customers/username/campaigns/1111489467563/schedules/2">
<ScheduledTime>2012-11-23T14:12:00.000Z</ScheduledTime>
</Schedule>
</content>
</entry>
I am posting to URI below
https://api.constantcontact.com/ws/customers/username/campaigns/1111489467563/schedules
Geting "Error 415: Media type not supported"
Hi,
There could be a couple of things going wrong, depending on the status of the campaign. If the campaign is already in scheduled status, you can't POST to the campaign /schedules URI again, you would need to PUT to /schedules/schedule-id. You can only POST to the /schedules URI if the campaign is in Draft or Sent status (not scheduled) and was first sent within 90 days of today if it is in sent status.
The 415 error is usually caused by the Content Type header. For your request, make sure you're using a Content-Type of application/atom+xml.
Best Regards,
Shannon W.
API Support Specialist
HI Good day,
I have a problem to create the schedule with existing campaign.campaign status is Draft.
i need to schedule the campaign using the RestFul API.
am using the POST method.
endpoint is https://api.constantcontact.com/ws/customers/username/campaigns/1112948131937/schedules
and the content-Type : application/atom+xml
but am gettign the resonce is Status = Forbidden, StatusCode = 403
when am using the Content-Type : application/x-www-form-urlencoded
am getting the Responce is Status=Unauthorized, StatusCode=401
Regards,
FerozKhan
HI FerozKhan,
I believe we solved this via email correspondence, but feel free to respond to this thread or my email if you have any questions. The issue was that you had referenced "joesflowers", our dummy username, in one place in your XML request, and you had an issue with the ScheduledTime XML node. It must be in the format below, with the month and day each having two digits:
<ScheduledTime>2013-04-03T20:03:35.000Z</ScheduledTime>
Best Regards,
Shannon W.
API Support Specialist