Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Constant Contact wants to help you succeed! We’re celebrating our professional service programs on the Constant Contact Community this month and you have a chance to try one of the services for free! Learn more.
HI , I am trying to access the events though api, but it is returning some error . My requirement is that , i need to list all events in my web site , please check my code below string sUsername = "*****"; string sPassword = "*****"; string sAPIKey = "*******"; string sUri2 = "https://api.constantcontact.com/ws/customers/" + sUsername.ToLower() + "/events"; Uri addy = new Uri(sUri2); HttpWebRequest request = WebRequest.Create(addy) as HttpWebRequest; request.Credentials = new NetworkCredential((sAPIKey + "%" + sUsername), sPassword); request.Method = "GET"; request.Accept = "application/atom+xml"; request.ContentType = "application/atom+xml"; HttpWebResponse response = request.GetResponse() as HttpWebResponse; StreamReader srResponse = new StreamReader(response.GetResponseStream()); string xml = srResponse.ReadToEnd().ToString();
... View more