How to store GenericData in Calendar event?

11 views
Skip to first unread message

David Hoffer

unread,
Jul 27, 2015, 12:18:16 PM7/27/15
to google-http-java-client
First let me ask if this is the right group for this question? I am using the Java Google Calendar API to retrieve and update Calendar event data. I have no problem reading the Event objects but I need to also store some application data in the Event object and I'm trying to use Event#setUnknownKeys(GenericData gd) for this. I then call the following but the data is not being stored/updated.  On the next call to get the Event the call to Event#getUnknownKeys() returns an empty set.  What am I doing wrong?  How to store data in Event?

service.events().update(PRIMARY, event.getId(), event).execute();

Eric Anderson

unread,
Aug 3, 2015, 1:22:37 PM8/3/15
to google-http...@googlegroups.com
On Sun, Jul 26, 2015 at 7:31 AM, David Hoffer <dhof...@gmail.com> wrote:
First let me ask if this is the right group for this question?

It sounds like you are having a service-specific issue. This list is for issues with the library itself. For this issue, I'd suggest making a question on StackOverflow with the #google-calendar tag.
Reply all
Reply to author
Forward
0 new messages