CHJani / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

More extended example of calendar-android-sample for tablets. #354

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which Google API and version (e.g. Google Calendar Data API version 2)?
google-api-java-client Version 1.6.0-beta

What format (e.g. JSON, Atom)?
Is there a way to use the client like the way we use gdata? For example,

CalendarEventEntry myEntry = new CalendarEventEntry();
myEntry.setTitle(new PlainTextConstruct("Dinner"));
myEntry.setContent(new PlainTextConstruct("with my girlfriend"));
DateTime startTime = DateTime.parseDateTime("2011-11-12T15:00:00-08:00");
DateTime endTime = DateTime.parseDateTime("2011-11-12T17:00:00-08:03");
When eventTimes = new When();
eventTimes.setStartTime(startTime);
eventTimes.setEndTime(endTime);
myEntry.addTime(eventTimes);
setRemainder(myService, myEntry);
CalendarEventEntry insertedEntry = myService.insert(postUrl, myEntry);

If not, could you please give the example in JSON.

What Authentation (e.g. OAuth, OAuth 2, ClientLogin)?
OAuth 2

Java environment (e.g. Java 6, Android 2.3, App Engine)?
Android 3.1

External references, such as API reference guide?

Please provide any additional information below.
These are missing in the sample:
-Creating events in selected calendar.
-Getting all events.
-Getting events by some filter like date or a full text query.
-Creating Recurring events.
-Update an entry.
-Delete an entry.
-Seting remainder.

I would be happy to see an example consisting methods above.

Thanks in advance.

Original issue reported on code.google.com by man.of.f...@gmail.com on 18 Nov 2011 at 8:12

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 14 Jan 2013 at 3:31