Click here to Skip to main content
11,492,523 members (59,609 online)
Rate this: bad
good
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 3:26am
sajithnet1.2K
Comments
VishwaKL at 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
0 Sergey Alexandrovich Kryukov 474
1 Maciej Los 276
2 F-ES Sitecore 224
3 KarstenK 210
4 CPallini 208
0 Sergey Alexandrovich Kryukov 10,062
1 OriginalGriff 8,620
2 Sascha Lefèvre 3,609
3 Maciej Los 3,372
4 Richard Deeming 2,500


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2015
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