create a contact in JAVA

Occasional Participant

create a contact in JAVA

Does anyone have an working example of creating a contact in JSP.


Thanks

3 REPLIES 3
Regular Participant

Hello,


 


A Java library can be found at http://sourceforge.net/projects/ctctwsjavalib/

Andrew T

Support Engineer, Constant Contact

Occasional Participant

I don't know the format for the contact list. the example list  "/ws/customers/huanlai/lists/1" as a contact list.


I have a user name of gtester and my contact list in constant contact is glist.


How would my contact list string be constructioned? based on the what I have above?


 


 

Employee

As far as XML is concerned, a contact list is represented as...


<ContactLists>

     <ContactList id="http://api.constantcontact.com/ws/customers/joesflowers/lists/1"></ContactList>

     <ContactList id="http://api.constantcontact.com/ws/customers/joesflowers/lists/11"></ContactList>

     <ContactList id="http://api.constantcontact.com/ws/customers/joesflowers/lists/12"></ContactList>

     <ContactList id="http://api.constantcontact.com/ws/customers/joesflowers/lists/14"></ContactList>

</ContactLists>

 

If an application had 'http://api.constantcontact.com' stored as another variable and concatenated it with what you have listed above ("/ws/customers/hauanlai/lists/1") this would work correctly.

David J

Developer Portal

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

Visit Page