Click here to Skip to main content
12,252,903 members (60,251 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
Hi,

I need to send events to my list of clients google calendar account from application.how can i acheive this.

i was able to send to my own id as below . how can i send to my clientid

 using Google.GData.Calendar;
using EventEntry = Google.GData.Calendar.EventEntry;
using Site.Code;
using Google.GData.Extensions;
using Google.GData.Client;
 
  EventEntry entry = new EventEntry();
      entry.Title.Text = "Tennis with Beth";
      entry.Content.Content = "344Meet for a quick lesson.";
      Where eventLocation = new Where();
      eventLocation.ValueString = "South Tennis Courts";
      entry.Locations.Add(eventLocation);
 
      When eventTime = new When(DateTime.Now.AddHours(3),DateTime.Now.AddHours(1));
      entry.Times.Add(eventTime);
      Uri postUri = new Uri("http://www.google.com/calendar/feeds/default/private/full");
      CalendarService myService = new CalendarService("");
      myService.setUserCredentials("sajiths@gmail.com","123");
 
      // Send the request and receive the response:
      AtomEntry insertedEntry = myService.Insert(postUri,entry);
Posted 6-Dec-12 2:26am
sajithnet1.2K
Comments
VishwaKL 6-Dec-12 21:00pm
   
Have a list of your client id loop through each id and call the sending method.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160426.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100