We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

Getting members list with C# API

tippua
Occasional Participant

Getting members list with C# API

Hi

 

I want to get the contacts present in the contact list, i have used the C# API function  getListMembers bbut it throws exception 404 not found, can you kindly provide me the code for this functionality, kindly reply ASAP, waiting for your reply,

 

regards,

 

Tippu

  

1 REPLY 1
Andrew_W
Employee

Hi Tippua

 

getListMembers requires you to pass a link (URI to the member), your authentication data and an OUT string for the next link if one exists.  

 

A 404 in this instance usually means the URI is incorrect.  Below is a snippit of code that pulls members from  list ID 1:

 

string link = "/ws/customers/" + authdata.Username + "/lists/1";
string nextChunk = "";

Utility.getListMembers(link, authdata, out nextChunk);

 

If you need further assistance, please let me know and I'd be more than happy to review the code you've created.

 

Thanks,

 

Andrew Weber
Associate Product Manager for EventSpot
Developer Portal

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

Visit Page