Hi,

   Iam creating Google calender Event Programically in .net and i need to 
share calender  to my list of friends .right now it is working fine except
how can i retrieve calender id  for a particular calender . GoogleApi has a 
class AtomId but from there i can only retrieve the url not the ID.

''''''''''''''''''''''''''''''''Code'''''''''''''''''''''''''''''
 private void createEvent(AtomId atom) {
    try {
      int no = atom.Uri.Content.LastIndexOf('/');
      string str = atom.Uri.Content.Remove(0,no + 1);
      string calenderid = str.Replace("%40","@");
      Uri postUri = new 
Uri(string.Format("https://www.google.com/calendar/feeds/{0}/private/full",calenderid));
      pass = calenderid;
      GoogleCalenderEvent googleAPI = new GoogleCalenderEvent();
      googleAPI.insertEvent("FTTTTTTT 
","Haiii-Comments","MyDescription",DateTime.Now,DateTime.Now.AddDays(2),"Calicut12");
      EventEntry entrynew = googleAPI.MakeEvent();
      myService.Insert(postUri,entrynew);
    }
    catch (AuthenticationException ex) {
      Response.Write("UserNamePasswordIsNotValid");
      return;
    }
  }

Regards,
sajith

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en



Reply via email to