Question about API capabilities. My company currently has an application and we are tracking usage of the application internally . Wanted to segment these users into these two groups. Is it possible to send a data file through the API that basically consisted of addresses and their corresponding usage situation and have Constant Contact be able to take this list and place users into separate lists based on whether they are a "0" or "1" and then have x message sent to the "0" users and y message sent to the "1" users. Thanks in advance.
It is certainly possible to have you send us a file containing your contacts as well as a number of fields with contact-specific data, and have us place them on a list in your account. However, we are not able to determine which list a contact is meant to be placed into by including a '0' or '1' with the contact.
You have two options for this:
1) Create each contact using the Contacts Collection by using the post method containing XML in the request body which gives us the details of your contact. You can also include a
The Bulk Activities API will allow you to post a large amount of contacts to a specific list or lists. The way you would want to do this is to split the contacts up prior to doing the Bulk Activity call, so they certain contacts will go to one list, and others will go to the other list.
Basically our Bulk Activities method allows you to post a large amount of contacts in one call, as opposed to the Contact Collection API that would require a call for each posted contact.
More information on our Bulk Activity API can be found here.