Hi Amanda, If you are are using Google Apps for Domain, you should be able to 2-legged OAuth to create calendar entries for your users without needing their authorization.
If you don't, you should use 3-legged OAuth and have them authorizing your application to create calendar event on their behalf. See the following links for more information: 2 legged OAuth for GDada documentation: http://code.google.com/apis/gdata/docs/auth/oauth.html#2LeggedOAuth 2 legged OAuth .NET sample: http://code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/OAuth/Program.cs Calendar OAuth documentation: http://code.google.com/apis/calendar/data/2.0/developers_guide_protocol.html#AuthOAuth General OAuth documentation: http://code.google.com/apis/accounts/docs/OAuth.html#GoogleAppsOAuth About adding users to event you should check out this .NET sample for Calendar API: http://code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/BookThemAll/BookThemAll.cs#108 Who who = new Who(); who.Email = member; who.Rel = Who.RelType.EVENT_ATTENDEE; entry.Participants.Add(who); Hope that helps. On Wed, Jul 6, 2011 at 5:28 PM, Amanda Thorson <[email protected]> wrote: > I have a vb.net web application that people can go to create meetings (just > like you would in outlook), and it then enters information into our SQL > database and currently it sends it to Outlook (exchange) for people to > accept/reject and then it goes right into their calendar. We are in the > process of going from exchange to Google mail. I still want to keep my web > app because I want that information in the database. This way, when people > go to our Intranet, they can see who is in a meeting, where, for what, and > during which times. But now that we're synching with Google mail, I don't > know how to send a meeting request to people using Google so when they > accept it automatically goes into the Google calendar, or just automatically > enter the event/meeting into Google Calendar. We don't want anyone to have > to log into their Gmail account as we have everyone synching from Outlook to > Google and most people are used to Outlook and still want to use it. Does > anyone have ideas on how to create meetings for other people in one spot for > my web app? I'm fine with the sql stuff, just not sure on how to do the > google part. I will not know everyone's credentials, just their email > addresses. > > Okay, so here's the link I'm using: > > https://www.google.com/calendar/feeds/default/private/full?rel=alternate > > I am getting the unauthorized error. I thought that if i used the > rel=alternate, the credentials wouldn't matter? > > Here's one sample code I'm trying to run. > > > ===================================== > Dim service As Service = New Service > > Dim entry As EventEntry = New EventEntry > 'set title and content of the entry > entry.Title.Text = "Testing event entry here gg" > entry.Content.Content = "Content testing entry here gg" > 'set a location for the event > Dim eventLocation As Where = New Where() > eventLocation.ValueString = "Location of meeting right here gg" > entry.Locations.Add(eventLocation) > > Dim eventtime As [When] = New [When](DateTime.Now.AddHours(1), > DateTime.Now.AddHours(2)) > entry.Times.Add(eventtime) > > entry.Notifications = True > > Dim postUri As Uri = New > Uri("https://www.google.com/calendar/feeds/default/private/full?rel=alternate") > 'send the request and receive the response > Dim insertedEntry As AtomEntry = service.Insert(postUri, entry) > ======================================= > > Another small question, when I add the users, how would I enter them with > the entry variable? > > Thanks for the help. I know i had another thread out there, but can't find > it now. Let me know if anything else is needed. > > -- > 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://code.google.com/apis/calendar/community/forum.html > -- Johan Euphrosine (proppy) Developer Programs Engineer Google Developer Relations -- 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://code.google.com/apis/calendar/community/forum.html
