Hi,

I haven't seen that problem you have described before.  Here is the
code snippet that I used to create a calendar gadget using the Java
client library -

public void createWebContent() throws Exception {
  URL feedUrl = new
URL("http://www.google.com/calendar/feeds/default/private/full";);

  CalendarEventEntry entry = new CalendarEventEntry();

  entry.setTitle(new PlainTextConstruct(create web content"));

  DateTime startTime = DateTime.parseDateTime("2008-04-07");
  DateTime endTime = DateTime.parseDateTime("2008-04-07");

  When eventTimes = new When();
  eventTimes.setStartTime(startTime);
  eventTimes.setEndTime(endTime);
  entry.addTime(eventTimes);

  WebContent wc = new WebContent();

  wc.setTitle("title");
  wc.setType("text/html");
  wc.setIcon("http://www.google.com/intl/en_ALL/images/logo.gif";);
  wc.setUrl("http://www.google.com";);
  wc.setWidth("800");
  wc.setHeight("600");

  entry.setWebContent(wc);

  // Send the request and receive the response:

  printEntryXML(entry);

  calendarService.insert(feedUrl, entry);
  System.out.println("Event is created");
}

And I am able to view this through the UI as well as the API

Hope it helps,
Austin

On Sun, Apr 6, 2008 at 12:49 PM, jeremy <[EMAIL PROTECTED]> wrote:
>
>  Hi
>
>  Having something of a problem seeing events in the google UI when they
>  are created using the API.  I'm using the Java api to generate events
>  and save them.  The events get created successfully, and can be
>  successfully recalled using the api and listed, edited etc.  However,
>  these events are NOT visible in the google UI - ie when I go to the
>  google calendar web-interface, they are unlisted.
>
>   One wrinkle is that f I add a webContent object with an icon to the
>  event, then the icon and time becomes visible in the google UI.  This
>  applies when I use the code suggested in the help-docs at
>  http://code.google.com/apis/calendar/developers_guide_java.html, ie
>  creating a CalendarEventEntry and using a CalendarService connected to
>  the calendar's /private/full URL to save it.
>
>  I have tried altering the event's visibility property to public, but
>  without useful effect.
>
>  HOWEVER, if I change the event type class to EventEntry, then the
>  saved items are fully visible in the google UI. Obviously I'm unable
>  to try adding a webContent object, as EventEntry doens;t support
>  these.
>
>  This isn;t a solution for me, as I need to use one or other of the
>  extended properties to save the external ID of the created event to
>  allow synchronization of the calendar.  My only other option is to
>  maintain an externa store of event IDs and regularly attemt to
>  synchronize, but as has already been pointed out by several coders
>  this is a very brittle solution and highly unsatisfactory.
>
>  Any idea why CalendarEventEntries should be invisible in the google
>  UI?  Anyone else seen this?
>
>  Jeremy
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to