Figured it out:

I was using the AUTH=XXXXX token instead of the SID=XXXXXXX token.
Use the SID token.  Okay.

-Dylan

On Apr 8, 10:16 am, pileofrogs <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I'm trying to get the reporting API to work.  I can get an
> authentication token, no problem, but when I submit a request for an
> actual report, it fails with the AuthenticationFailure message.  I've
> tried in perl, PHP and using curl.  I'll show you my curl example
> because it's the shortest:
>
> QUERY='<?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>DQAAAIAAAAC_gRfVBCC....wkIPe4NFDMFIMwhA</token>
>     <domain>seattlecentral.edu</domain>
>     <date>2008-04-08</date>
>     <reportType>daily</reportType>
>     <reportName>disk_space</reportName>
> </rest>'
>
> echo $QUERY | curl --silent [EMAIL 
> PROTECTED]://www.google.com/hosted/services/v1.0/reports/ReportingData
>
> If anyone can see what I've done wrong, please let me know.
>
> Thanks!
> -Dylan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps 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-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to