Sample Code

Highlighted
Occasional Participant

Sample Code

I am new to working with Constant contact api. I want sample code of how to add a member to an exisitng mailing list, this will be done from a web application, written in C#. 

 

Thanks 

3 REPLIES 3
Highlighted
Regular Advisor

Re: Sample Code

Hello,

 

Thanks for posting.  We have a C# wrapper, complete with examples, on our github profile.  Take a look here:

https://github.com/constantcontact/.net-sdk

Let me know if you have any questions.

 

Regards,

 

Andrew B.

API Support

Highlighted
Occasional Participant

Re: Sample Code

thanks Andrew. 

At the minute I am just trying to get my application to talk to the API. So I have set up a mailing iist using constant contact website, and added a member to it, and now I want to use my application to display the members in this list. I would presume I use some sort of GetContacts method within the API, but how would I know what the id of the list would be identify it and then get the members out of that list? 

Sorry for the rambling, I am trying to get to grips with how this works! 

 

Thanks 

Caroline 

Highlighted
Moderator

Re: Sample Code

Hi Caroline,

 

I'm referring you to our comprehensive API documentation resources on our developer portal

 

When you retrieve the details for a contact, it includes the lists that they are a member of. So, if you know the contact's email address that you added to the list, you can search on that as described here in the documentation. You will know which list that the contact is a member of. Then you can GET the Contactlist membership as described here.

 

Let me know if this helps you with the issue you are experiencing.

Rich Marcucella
Sr. Technical Writer, Content Developer
Web Services Team
http://developer.constantcontact.com
Developer Portal

View API documentation, code samples, get your API key.

Constant Contact Would Like To Hear From You!

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
Featured