cancel
Showing results for 
Search instead for 
Did you mean: 

Returned XML is lying to me

Advisor

Returned XML is lying to me

Hi,

 

I went into your web site, selected a contact, and manually added it to the "Do Not Mail" list.  When I review the results I see exactly what I expect.  The email is now on the Do Not Mail list and the "Date Removed" reflects todays date.  Perfect.

 

Now, using your API I've requested a list of any contacts added to the "do-not-mail" list as of today's date

 

Example:

?updatedsince=2011-08-25T00:00:00.000Z&listtype=do-not-mail

 

Here is what I'm getting back:  (I removed non essential lines)

 

<Contact xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.com/ws/customers/cascadedsdev/contacts/6">
   <Status>Do Not Mail</Status>
   <EmailAddress>accufab1@myisp.net</EmailAddress>
   <EmailType>HTML</EmailType>
   <Name>
   </Name>
   <OptOutTime>2011-03-18T20:47:53.515Z</OptOutTime>
   <OptOutSource>ACTION_BY_CUSTOMER</OptOutSource>
   <FirstName></FirstName>
.
.
.
   <Confirmed>true</Confirmed>
   <LastUpdateTime>2011-08-25T20:02:09.897Z</LastUpdateTime>
</Contact>

 

You notice that the "OptOutTime", which I'm assuming is the same date field being used on your web site, shows 2011-03-18.  I don't know where this date came from except maybe it's the date it was initially added (OptedIn) to Constant Contact.  I do see the "LastUpdateTime" field shows the correct date.  But this date can change by editing contact information "after" it had been opted out.  Needless to say this is a little confusing and I hesitate using the"LastUpdateTime" because going forward this "may" not always be the actual Opt Out date.

 

So why is the node titled "OptOutTime" showing me the wrong date?  It lies like a rug!  :smileywink:

 

Thoughts?

 

Thanks,

 

Chris

 

 

1 REPLY 1
CTCT Employee

Re: Returned XML is lying to me

Hey Chris,

 

I will look into this for you and see what I can find out for you.  I will let you know the results.

 

Ryan Davis
Quality Engineer