Gau-Yi / google-api-java-client

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

access events in existing calendar on specific date #139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Which API and version 
Google Calendar Data API version 2

What format 
anything will do ( JSON, Atom)?

What Authentation 
Android

Java environment 
Android 2.1

External references, such as API reference guide?

Please provide any additional information below.

I want to access the events of an existing calendar for a specif date.
Say I want to access all the events that have been added for 12/3/2010.

Original issue reported on code.google.com by sunnycoo...@gmail.com on 8 Mar 2011 at 11:45

GoogleCodeExporter commented 9 years ago
Hi Sunny,

Its very simple. 

Please refer the following line of code:

CalendarUrl url = CalendarUrl.forEventFeed("your account name", "private", 
"full");

/*
 * pass you query parameters in terms of "Key" and "Value" pair as below. 
 * In this example "ctz" refers to the timezone. You can find out more 
 * keys (Calendar query Parameters) at
 * http://code.google.com/apis/calendar/data/2.0/reference.html#Parameters
 * 
 * hint: you need "start-min" and "start-max" parameters and set both to
 * "12/3/2010", however you have to convert the date in to RFC 3339 format
 *
 */ 
url.put("ctz", "America/Los_Angeles");

Original comment by umang.jo...@esprit.co.in on 26 May 2011 at 10:37