Email Monitor

83 views
Skip to first unread message

Jeff Church

unread,
Jun 2, 2012, 4:53:08 PM6/2/12
to google-app...@googlegroups.com
Hello, I've been trying to create an email monitor in .NET using the example on https://developers.google.com/google-apps/email-audit/.

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!

Reply all
Reply to author
Forward
0 new messages