I have followed the information on the link you posted and keep
getting the following error:
Traceback (most recent call last):
File "./calendarExample.py", line 599, in <module>
main()
File "./calendarExample.py", line 596, in main
sample.Mark()
File "./calendarExample.py", line 505, in Mark
self.cal_client.InsertEvent(event, fitnessEditUrl)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/gdata/calendar/service.py", line 159, in
InsertEvent
converter=gdata.calendar.CalendarEventEntryFromString)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/gdata/service.py", line 1183, in Post
media_source=media_source, converter=converter)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/gdata/service.py", line 1303, in PostOrPut
'reason': server_response.reason, 'body': result_body}
gdata.service.RequestError: {'status': 400, 'body': '[Line 2, Column
93, element ns0:content] Malformed MIME type', 'reason': 'Bad
Request'}
Here is the line call to InsertEvent that I am using:
new_event = self.cal_client.InsertEvent(event, '/calendar/feeds/
[email protected]/private/full')
What am I doing wrong?
Thanks,
Mark
On Oct 16, 5:07 pm, Ray Baxter <[email protected]> wrote:
> http://67central.com/bc/2008/09/28/adding-events-to-secondary-google-...
>
>
>
> On Fri, Oct 16, 2009 at 5:51 AM, Mark <[email protected]> wrote:
>
> > I have read through documentation and the Calendar sample for python.
> > I want to add events to a calendar which is not the default calendar.
> > How do I do this?
>
> > Thanks,
> > Mark
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---