I keep getting the error response when trying to add a contact with an
anniversary "event". Can someone identify what I'm doing wrong? I would
assume this is farily simple. The error response and code I'm using to
instantiate the event for the ContactEntry is below. Any help is
appreciated...
Exception Response: "batchId: create, status code:400, reason: When element
does not have start date set or it's malformed."
[code]
// Add Anniversary event to ContactEntry
When when = new When();
when.setStartTime(new DateTime(cal.getTimeInMillis()));
when.setEndTime(new DateTime(cal.getTimeInMillis()));
Event event = new Event();
event.setRel("anniversary");
event.setWhen(when);
contactEntry.getEvents().add(event);
[/code]
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html