To Whom It May Concern:

I am getting the exception:

   raise gdata.apps.service.AppsForYourDomainException(e.args[0])
AppsForYourDomainException: {'status': 403, 'body': 
'<HTML>\n<HEAD>\n<TITLE>Invalid domain.</TITLE>\n</HEAD>\n<BODY 
BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Invalid domain.</H1>\n<H2>Error 
403</H2>\n</BODY>\n</HTML>\n', 'reason': 'Invalid domain.'}


My code is:

import gdata.calendar.service
import gdata.apps.audit.service

email = "[email address]"
password = "somepassword"
source = "damondouglas-emailaudit-v1.0"

source_user = "[email address]"
destination_user = "[email address]"
end_date = "2011-12-31 01:00"

client = gdata.apps.audit.service.AuditService()
client.ClientLogin(email, password, account_type='HOSTED', source=source)

client.createEmailMonitor(source_user, destination_user, end_date, 
begin_date=None, incoming_headers_only=False, outgoing_headers_only=False,  

                                                    drafts=True, 
drafts_headers_only=False, chats=True, chats_headers_only=False)



I am using python 2.7.2 on Mac OS 10.7.1.  Thank you for your help.

Regards,

Damon

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-apps-mgmt-apis/-/TXEUp1NlvjkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Reply via email to