I've made a web service which encapsulates access to the google calendar API, but I can only ever work with the "primary" calendar which has my email address as its' name. I know I'm getting close, but hopefully somebody will be able to look at the code below, and figure out why I can't get it to do exactly what I want...
Specifically, I have a lot of trips to publish, and I'd like to put them on different calendars, like overlays, depending on the properties of the trip, so that, for instance, trips that use a 56 passenger bus are listed on one of the calendars, while others that use smaller vehicles are listed seperately.
The code listed below is a simplified function to post just one static event, and I need to know how to modify it such that it can direct its output to the calendar of choice...
Private Function CreateEvent2() As String
Dim entryTitle As String = "", strContent As String = "", strWhere As String = "", _
varFrom As String = "", varTo As String = "", _
recurData As String = ""
Dim Service As CalendarService = New CalendarService("My-exampleApp-1")
entryTitle = "(1234) Trip to Funland, USA"
strContent = "Event body information goes here"
varFrom = "6/1/2012 6 AM"
varTo = "6/2/2012 6 pm"
strWhere = "Funland, USA"
Dim entry As New EventEntry
entry.Title.Text = entryTitle
entry.Content.Content = strContent
Dim eventLocation As New Where
eventLocation.ValueString = strWhere
Dim eventTime As New [When](varFrom, varTo)
Dim postUri As Uri = New Uri("https://www.google.com/calendar/feeds/default/private/full")
Dim insertedEntry As AtomEntry = Service.Insert(postUri, entry)