zilzar / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Bad Request - InvalidFormat #666

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi to everybody,
I'll try to provide a MailMonitoring form my Domain following the link
https://developers.google.com/google-apps/email-audit/#managing_email_monitors
I use Visual Basic .net and the code used are:

Dim Monitor As New MailMonitor

Monitor.BeginDate = New DateTime(2013, 6, 1)
Monitor.EndDate = New DateTime(2013, 6, 30)
        Monitor.IncomingEmailMonitorLevel = MonitorLevel.FULL_MESSAGE
        Monitor.OutgoingEmailMonitorLevel = MonitorLevel.HEADER_ONLY
        Monitor.DraftMonitorLevel = MonitorLevel.FULL_MESSAGE
        Monitor.ChatMonitorLevel = MonitorLevel.FULL_MESSAGE
        Monitor.DestinationUserName = Utente

        Dim Service As AuditService, MonitorEntry As MailMonitor

        Service = New AuditService(Dominio, Dominio)
        Service.setUserCredentials(Indirizzo, Password)

        MonitorEntry = Service.CreateMailMonitor(Utente, Monitor)

But I reseved this error:

<?xml version="1.0" encoding="UTF-8"?>
<AppsForYourDomainErrors>
  <error errorCode="1801" invalidInput="michele@nsmsolutions.it" reason="InvalidValue" />
</AppsForYourDomainErrors>

Utente = UserName (with @)
Indirizzo = BoxName (without @)

I need to know local IP of logged user when sent a specific email in a specific 
date and specific time.

Thanks to all for your suggestion.

Original issue reported on code.google.com by mich...@nsmsolutions.it on 4 Jul 2013 at 10:36