C# wrapper .Net library - Constant 500 errors

Highlighted
Participant

C# wrapper .Net library - Constant 500 errors

Hi.. I'm trying to use the .Net Library. My authentication works but I keep getting 500 errors.


What is wrong with the following. Do you have any .Net library samples?    thanks in advance



 


AuthenticationData authdata = new AuthenticationData();authdata.Username = "USER";



authdata.Password = "PASS";



authdata.ApiKey = "KEY";



ContactList c = new ContactList("TEST",true);



c.SortOrder = 999;



c.Id = "9";




 



 


string uri = " https://api.constantcontact.com/ws/customers/"+ USER+ /activities";      <-- IS THIS CORRECT?



 






StringBuilder sb =

ConstantContactUtility.Components.ContactListComponent.CreateNewContactList(c);















Utility.httpPost(authdata,uri, sb.ToString());

1 REPLY 1
Highlighted
CTCT Employee

Re: C# wrapper .Net library - Constant 500 errors

Sorry, I did not realize you had posted http://developer.constantcontact.com/node/2019 as well. I'll continue assisting you through that thread.

David J

Developer Portal

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

Visit Page

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