Hello Stefan,
You need to use the Calendar event feed link in order to add event to a
calendar:
eventFeedUrl = new URL(
eventFeedUrl = new URL(newCalendar.getLink("
http://schemas.google.com/gCal/2005#eventFeed", null).getHref());
Best,
Alain
On Tue, Jul 19, 2011 at 12:36 AM, Stefan Sayk <[email protected]>wrote:
> Hi,
>
> I want to add a new entry to a new calendar. I create a new
>
> calendar:
>
> CalendarEntry newCalendar = createCalendar( title, service );
> Everything is fine! Then I create an event:
>
> eventFeedUrl = new URL(newCalendar.getId());
>
> service.insert( eventFeedUrl, myEntry ); I got an Exception
> :-(
>
> com.google.gdata.util.InvalidEntryException: Bad Request Unknown visibility
> found:calendars
>
> at
>
>
> com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:
>
> 594)
>
> at
>
>
> com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:
>
> 563)
>
> at
>
>
> com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:
>
> 552)
>
> at
>
>
> com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:
>
> 530)
>
> at
>
>
> com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:
>
> 535)
>
> at com.google.gdata.client.Service.insert(Service.java:1409)
>
> at com.google.gdata.client.GoogleService.insert(GoogleService.java:
>
> 599)
>
> What is wrong?
>
> Stefan
>
> --
> 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://code.google.com/apis/calendar/community/forum.html
>
--
Alain Vongsouvanh
--
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://code.google.com/apis/calendar/community/forum.html