So I have come up with some code that is supposed to add an event.  I
got it from combining a few different examples on Google's
documentation.  It fails on the last line with "Execution of request
failed."  I don't know too much about exception handling so I'm still
working on how to read the details of the exception.

..................
        Dim postUri As Uri = New
Uri("http://www.google.com/calendar/feeds/default/private/full";)

        Dim myEntry As EventEntry = New EventEntry()

        myEntry.Title.Text = "OMG It Worked!!!"
        myEntry.Content.Content = "Just a little entry."

        Dim author As AtomPerson = New
AtomPerson(AtomPersonType.Author)
        author.Name = "Steve"
        author.Email = "[EMAIL PROTECTED]"
        myEntry.Authors.Add(author)

        Dim startTime As DateTime =
DateTime.Parse("2006-11-17T12:00:00-08:00")
        Dim endTime As DateTime =
DateTime.Parse("2006-04-17T13:00:00-08:00")
        Dim eventTimes As [When] = New [When]

        eventTimes.StartTime = startTime
        eventTimes.EndTime = endTime
        myEntry.Times.Add(eventTimes)

        Dim myService As CalendarService = New
CalendarService("UVM-ScheduleRevision-1")
        myService.setUserCredentials("[EMAIL PROTECTED]",
"PASSWORD")

        'Send the request and receive the response
        Dim insertedEntry As EventEntry = myService.Insert(postUri,
myEntry)
..................

Was I supposed to receive authorization before this?  From what I can
tell the authorization request is included in this code.  Anyone see a
possible problem?  Thanks.

GiantsFanMan11


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