Hi Prashant, thanks for your reply.

I tried using curl on my Solaris machine's command line, first by retrieving 
my admin account's auth token:
/usr/local/bin/curl https://www.google.com/accounts/ClientLogin \
--data-urlencode Email=*[email protected]* \
--data-urlencode Passwd=*password* \
-d accountType=GOOGLE \
-d service=apps

This was successful and I received three tokens: SID, LSID, and Auth.

I then tried to retrieve an accounts report by issuing the following:

/usr/local/bin/curl --silent \
--request POST \
--data "@*account_request.xml*" \
--header "Content-Type: application/atom+xml" \
--header "Authorization: GoogleLogin auth=*Auth token*" \
"https://www.google.com/a/services/v1.0/reports/ReportingData";

where *account_request.xml* was a file in the same directory that had the 
following:

<?xml version="1.0" encoding="UTF-8"?>
<rest xmlns="google:accounts:rest:protocol" xmlns:xsi=" 
http://www.w3.org/2001/XMLSchema-instance ">
<type>Report</type>
<token>*SID token*</token>
<domain>*my.domain.edu*</domain>
<date>2011-04-20<date>
<page>1</page>
<reportType>daily</reportType>
<reportName>accounts</reportName>
</rest>

I still received a 404 error.  Which part of my request is incorrect?  Am I 
using the correct tokens in each place?  Is the URL correct?

Thanks again for any help!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" group.
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