locked
Need to add a google calendar event using vb.net RRS feed

  • Question

  • Hi there!

    Could anybody help me to amend the following code, please? I get an "Invalid Credential" error!

    Thank you!

    Private Sub CrearEventoToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles CrearEventoToolStripMenuItem.Click
            Dim newEvent As New EventEntry
            Dim newatom As AtomEntry
            Dim MiCalendario As New CalendarEntry

            Dim serv As New Google.GData.Calendar.CalendarService("iNanaPeru")
            'Dim serv As New Google.GData.Calendar.CalendarService("GCal")
            
            serv.setUserCredentials("myemail@gmail.com", "mysecurepassword")
            newEvent.Title.Text = "Evento Prueba"
            newEvent.Content.Content = "Prueba de evento"

            Dim newTime As New [When]()
            newTime.StartTime = Convert.ToDateTime("19/06/2014") 'getting date/time from textbox for testing
            newTime.EndTime = DateAdd(DateInterval.Hour, 1, Convert.ToDateTime("10:00")) 'add 1 hour for end
            newEvent.Times.Add(newTime)

            Dim uri As New Uri("https://www.google.com/calendar/feeds/default/private/full")
            'Dim uri As New Uri("https://www.google.com/calendar/feeds/2n3e29qcs42ldshivodi1liq6o%40group.calendar.google.com/public/basic")
            newatom = serv.Insert(uri, newEvent)

        End Sub


    Paris Pantigoso

    • Moved by Carl Cai Friday, June 20, 2014 9:09 AM (from vb)issues related to VB6 or third-party are not supported
    Thursday, June 19, 2014 7:05 AM

Answers

All replies

  • I would think if what you're doing uses a google API then you would need to contact google for assistance.

    Google Developers website


    La vida loca

    • Proposed as answer by Carl Cai Friday, June 20, 2014 1:37 AM
    • Marked as answer by Just Karl Friday, June 27, 2014 9:57 PM
    Thursday, June 19, 2014 7:42 AM
    • Proposed as answer by Carl Cai Friday, June 20, 2014 1:37 AM
    • Marked as answer by Just Karl Friday, June 27, 2014 9:57 PM
    Thursday, June 19, 2014 8:05 AM
  • Thank you Mr. Monkeyboy but, would it be possible to have the code? After a long night without sleeping I was trying to avoid any extra reading as you could imagine... please.

    Paris Pantigoso

    Thursday, June 19, 2014 2:33 PM
  • Thank you Mr. Monkeyboy but, would it be possible to have the code? After a long night without sleeping I was trying to avoid any extra reading as you could imagine... please.

    Paris Pantigoso


    I don't have code for any google APIs.

    La vida loca

    Thursday, June 19, 2014 8:12 PM
  • Thanks anyway. Have a great day!

    Paris Pantigoso

    Thursday, June 19, 2014 9:37 PM