I've posted this code once before, but it was in digest authentication. Here are the changes I made to make it work for basic authentication. Many thanks to CC for being sooo supportive of us .Net developers...NOT. Actually thanks to peers in the forum for your direction. Code changes marked in bold. Private Sub AddToConstantContacts() Try Dim sUsername As String = "
Thanks for posting the sample code. This code is for our Bulk Activities collection. This is intended only for adding 25+ contacts at a time using bulk jobs. If you are looking for code for modifying or creating a single contact, please see this post for sample C# .NET code. This code is easily modifyable to VB .NET and has been tested there as well.
Please note, it is against the Terms & Conditions of the Constant Contact API to use the Bulk Activity Collection for single contact adds such as Sign Up Forms. If such abuse is detected, deactivation of the API Key may occur until the code is updated to not abuse the Constant Contact API.
View API documentation, code samples, get your API key.Visit Page
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