Hi Scott, Your code looks correct, but I have had no luck reproducing this error, and I don't have evidence that the API is malfunctioning. If possible, please try to run the same mailbox request using cUrl from the command line:
Create an GData XML file with your relative parameters called "mailboxDump.xml." See this page<http://code.google.com/googleapps/domain/audit/docs/1.0/audit_developers_guide_protocol.html#creating_mailbox_export_example>for an example of what the XML should look like, but something like this: <atom:entry xmlns:atom='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'> <apps:property name='beginDate' value='2009-07-01 04:30'/> <apps:property name='endDate' value='2009-08-30 20:00'/> <apps:property name='includeDeleted' value='false'/> <apps:property name='searchQuery' value='in:chat'/> <apps:property name='packageContent' value='FULL_MESSAGE'/> </atom:entry> Then grab an Auth Token (it's the long string after "Auth=" - and save it for the next steps): >> curl https://www.google.com/accounts/ClientLogin -d Email=*(your admin email)* -d Passwd=*(your admin password)* -d accountType=HOSTED -d service=apps Then call the API using a raw cUrl request like so (replace variables with your info): >> curl --silent --request POST --data "@mailboxDump.xml" --header "Content-Type:application/atom+xml" --header "Authorization: GoogleLogin auth=*$AUTHTOKEN*" "https://apps-apis.google.com/a/feeds/compliance/audit/mail/export/*$DOMAIN* /*$USER*" Check the status of the request with: >> curl --silent --request GET --header "Content-Type:application/atom+xml" --header "Authorization: GoogleLogin auth=*$AUTHTOKEN*" "https://apps-apis.google.com/a/feeds/compliance/audit/mail/export/*$DOMAIN* /*$USER*/*$REQUESTID*" Also, if this method still produces an error message, please let us know how long it takes for the "PENDING" state to turn into an "ERROR" state. - Michael -- 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/-/FzTxANRDaesJ. 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.
