MailMonitor monitor = new MailMonitor();
monitor.BeginDate = new DateTime(2009, 6, 15);
monitor.EndDate = new DateTime(2009, 6, 30, 23, 20, 0);
monitor.IncomingEmailMonitorLevel = MonitorLevel.FULL_MESSAGE;
monitor.OutgoingEmailMonitorLevel = MonitorLevel.HEADER_ONLY;
monitor.DraftMonitorLevel = MonitorLevel.FULL_MESSAGE;
monitor.ChatMonitorLevel = MonitorLevel.FULL_MESSAGE;
monitor.DestinationUserName = "namrata";AuditService service = new AuditService("example.com", "example.com-auditapp-v1");
service.setUserCredentials("ad...@example.com", "p@55w0rd");
MailMonitor monitorEntry = service.CreateMailMonitor("abhishek", monitor);After setting this up to work with my domain, it gets stuck on the last line. I'm getting a GDataRequestException - Execution of request failed: https://apps-apis.google.com/a/feeds/compliance/audit/mail/monitor/(domain).com/user.
Thanks for any help!