Click here to Skip to main content
15,894,539 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

C#
 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
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900