FWIW, I tried the magic cookie method (I have a public calendar up)

    username='h9iot5h97etefi3dslcigp825k%40group.calendar.google.com'
    visibility='private-fad500141f9ad2c0c407f3af21538f68'
    projection='basic'
    query = gdata.calendar.service.CalendarEventQuery(username,
visibility, projection, None, None)

    calendar_service = gdata.calendar.service.CalendarService()
    feed = calendar_service.CalendarQuery(query)

I still get this error from urlfetch apparently,
DownloadError: ApplicationError: 2 nonnumeric port: ''

I am probably being quite bone-headed, but would love some advice.

On Feb 22, 11:02 pm, maneesh <[email protected]> wrote:
> Hi all,
> I'm just trying to get a list of events from a specific public
> calendar (so I shouldn't need authentication), can anyone point out
> what I am doing wrong in this snippet?
>
>     calendar_service = gdata.calendar.service.CalendarService()
>     calendar = gdata.calendar.CalendarListEntry()
>     calendar.id = atom.Id
> (text='[email protected]')
>     returned_calendar = calendar_service.InsertCalendarSubscription
> (calendar)
>
> python throws exceptions in the InsertCalendarSubscription call ( I
> think the calendar object isn't valid), any help would be
> appreciated...

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