Calendar API for .Net: Email notifications not sent when creating calendar event

231 views
Skip to first unread message

Loren

unread,
Sep 22, 2014, 12:12:09 AM9/22/14
to google-ca...@googlegroups.com

I'm working on a windows service that uses the Google Calendar API v3 to create and delete calendar events. My code is working, but when creating new events, email notifications never get sent to the invitees. The events just show up on their calendar.

Here is a code snippet:

EventsResource.InsertRequest insertRequest = new EventsResource.InsertRequest(calendarService, eventRequest, calendarID);
insertRequest
.SendNotifications = true;
var response = insertRequest.Execute();

I have tested creating the same events using the same authentication credentials with the Google Calendar API explorer:

https://developers.google.com/google-apps/calendar/v3/reference/events/insert#try-it

When I create the event using that form, email notifications are sent out correctly, so I don't think it's a configuration or authentication problem on the Google side. I'm starting to think this is a bug in the Google API for .Net (I'm using the latest version - 1.8.1.95). I'm setting SendNotification property to true, but maybe it's not getting added to the actual request that goes out?

Anyone else having this problem?

Message has been deleted

Lucia Fedorova

unread,
Sep 22, 2014, 4:34:14 PM9/22/14
to google-ca...@googlegroups.com
Hi Loren,
would you please try printing the actual http request to see whether it contains the correct parameter?

Loren

unread,
Sep 22, 2014, 4:50:40 PM9/22/14
to google-ca...@googlegroups.com
I actually tried to find a way to do that, but couldn't figure it out. The HTTP request is constructed under the hood in the Google API assemblies. I could only debug it to the point where InsertRequest.Execute() is called, and the request at that point has the SendNotifications parameter set to true. I tried monitoring with WireShark to see the HTTP request go out, but the data is encrypted. Maybe there's another way to see the actual HTTP request that I'm not thinking of?

I found this article that applies to the Google Data API:

Is there a similar utility that I could use to see the HTTP traffic generated by the CalendarService?

Lucia Fedorova

unread,
Sep 23, 2014, 5:19:32 AM9/23/14
to google-ca...@googlegroups.com
Hi Loren,
you can use fiddler for that: http://www.telerik.com/fiddler
It would be very helpful to get the data.

Steve Schindler

unread,
Dec 11, 2014, 9:30:03 AM12/11/14
to google-ca...@googlegroups.com
Did you ever figure this out? I am having exactly the same problem.
Reply all
Reply to author
Forward
0 new messages