ConstantContact Class CTCT Wrapper Documented Class Library
Main class meant to be used by users to access Constant Contact API functionality.
Examples

ASPX page:
<%@Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
       CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default"%>
...
   <asp:TextBox ID="tbxEmail" runat="server"></asp:TextBox>
   <asp:Button ID="btnJoin" runat="server" Text="Join" onclick="btnJoin_Click" />
   <asp:Label ID="lblMessage" runat="server" Text=""></asp:Label>
...
Examples

Code behind:
public partial class _Default : System.Web.UI.Page
{
   protected void Page_Load(object sender, EventArgs e)
   {
        ...
   }

   protected void btnJoin_Click(object sender, EventArgs e)
   {
       try
       {
           Contact contact = new Contact();
           // Don't care about the id value
           contact.Id = 1;
           contact.EmailAddresses.Add(new EmailAddress() {
                EmailAddr = tbxEmail.Text,
                ConfirmStatus = ConfirmStatus.NoConfirmationRequired,
                Status = Status.Active });
           contact.Lists.Add(new ContactList() {
                Id = 1,
                Status = Status.Active });

           ConstantContact cc = new ConstantContact();
           cc.AddContact(contact);
           lblMessage.Text = "You have been added to my mailing list!";
       }
       catch (Exception ex) { lblMessage.Text = ex.ToString(); }
   }
}
Examples

Web.config entries:
...
<appSettings>
    <add key="APIKey" value="APIKey"/>
    <add key="Password" value="password"/>
    <add key="Username" value="username"/>
    <add key="RedirectURL" value="http://somedomain"/>
</appSettings>
...
Inheritance Hierarchy

Online System Object
  CTCT ConstantContact

Namespace: CTCT
Assembly: CTCT (in CTCT.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public class ConstantContact
See Also