using Google.GData.Client;
using Google.Apis.Calendar.v3.Data;
using Google.GData.Client;
using Google.Apis.Calendar.v3.Data;
private void TestEvent()
{
try(
Service service = new Service("cl", "MyTestApp");
service.setUserCredentials("userName", "password");
Google.Apis.Calendar.v3.CalendarService g = new Google.Apis.Calendar.v3.CalendarService();
Google.Apis.Calendar.v3.Data.Event ev = new Google.Apis.Calendar.v3.Data.Event();
EventDateTime start = new EventDateTime();
start.DateTime = "09/09/2012 15:00";
EventDateTime end = new EventDateTime();
end.DateTime = "09/09/2012 18:00";
//ev.Title < ?????
ev.Start = start;
ev.End = end;
ev.Description = "Description...";
g.Events.Insert(ev, "sdfskdjfj3...@group.calendar.google.com");
}
catch( Exception ex)
{
string error = ex.Message;
}
}
What is wrong here, and how can i define the title of the event?
Thank you for any help.
Volkan
--
You received this message because you are subscribed to the Google Groups "Google Calendar API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-calendar-api/-/-E9H7ETWAe8J.
To post to this group, send email to google-ca...@googlegroups.com.
To unsubscribe from this group, send email to google-calendar...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-calendar-api?hl=en.
You can now import the classes you will need using the following statements:
using Google.Apis.Authentication;
using Google.Apis.Authentication.OAuth2;
using Google.Apis.Calendar.v3;
using Google.Apis.Calendar.v3.Data;
To unsubscribe from this group, send email to google-calendar-api+unsub...@googlegroups.com.
AuthenticatorFactory.GetInstance().RegisterAuthenticator(() => new OAuth2Authenticator(provider, GetAuthentication));
service.Events.Insert(event, CalendarId).Execute();"EXECUTE ();" !!!
ev.Summary = "My Event Title"i hope this help
--
You received this message because you are subscribed to the Google Groups "Google Calendar API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-calendar...@googlegroups.com.
To post to this group, send email to google-ca...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-calendar-api.
For more options, visit https://groups.google.com/groups/opt_out.