Using C# wrapper for Version 2 APIs. In the following code fragment, c is a Contact object and api is a
CTCT.ConstantContact object.
c.FirstName = "George";
c.Status = Status.Removed;
c = api.UpdateContact(c, false);
The modification to the FirstName property works. But the attempt to change the status fails very quietly.
1) Is there no way to modify a contact's status via API?
2) What is the significance of the 2nd parameter in the UpdateContact call?
Solved! Go to Solution.
Hello Mike,
The second parameter in UpdateContact is a boolean value stating whether or not the action to update the contact was performed by the Site Owner, or by the contact. This is important in certain situations, such as when a contact was previously unsubscribed, they can only be resubscribed when this action is performed by the contact. More information is available at:
http://developer.constantcontact.com/docs/contacts-api/contacts-resource.html?method=PUT
Looks like DeleteContact call will do the trick. I still would like an answer to the 2nd question...
2) What is the significance of the 2nd parameter in the UpdateContact method?
Hello Mike,
The second parameter in UpdateContact is a boolean value stating whether or not the action to update the contact was performed by the Site Owner, or by the contact. This is important in certain situations, such as when a contact was previously unsubscribed, they can only be resubscribed when this action is performed by the contact. More information is available at:
http://developer.constantcontact.com/docs/contacts-api/contacts-resource.html?method=PUT
The holidays have come and gone. For many seasonal businesses, this means the rush of shoppers has decreased as well. Instead of turning off the lights and waiting for spring, make your email marketi...
See Article