I found the problemn and I am posting it here for anyone we may have
the same one.
I initialized the service in this way:
GoogleService calendarService = new GoogleService("cl","MyCompany-
MyApp-MyVersion");
I could post entries to google,delete thim and retrieve them but their
time list was empty.
changing the above to
CalendarService calendarService = new CalendarService("MyCompany-MyApp-
MyVersion");
solves the problem
On Oct 9, 12:59 pm, maver <[EMAIL PROTECTED]> wrote:
> Thank you for your help but It still doesn't work for me for some
> strange reason. Any Google Developer care to help?
>
> Thank you
>
> On Oct 9, 12:53 pm, "venky engineer" <[EMAIL PROTECTED]> wrote:
>
> > // Set up the URL and the object that will handle the connection:
>
> > URL feedUrl = *new* URL(*feedUri*);
>
> > // Send the request and receive the response:
>
> > CalendarEventFeed resultFeed = service.getFeed(feedUrl,
>
> > CalendarEventFeed.*class*);
>
> > *for* (*int* i = 0; i < resultFeed.getEntries().size(); i++) {
>
> > gdata.data.calendar.CalendarEventEntry entry = resultFeed.getEntries
> > ().get(i);
>
> > List timeList = entry.getTimes();
>
> > *for* (*int* j=0; j<timeList.size();j++){
>
> > When eventTime = (When) timeList.get(j);
>
> > DateTime startTime = eventTime.getStartTime();
>
> > DateTime endTime = eventTime.getEndTime();
>
> > String startTimeStr = startTime.toUiString();
>
> > String endTimeStr = endTime.toUiString();
>
> > out.println(startTimeStr);
>
> > out.println(endTimeStr);
>
> > }
>
> > and the setFeedUri i am using is
>
> > setFeedUri(http://www.google.com/calendar/feeds/default/private/full);
>
> > this is my code.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" 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://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---