It's been a week since I posted this and I haven't gotten a response.
I'm a little confused about the Google Apps API code. I saw the new
graphical reporting stuff, but no one seems to be interested in the
base reporting API. Can anyone tell me if this code is being
maintained? Does Google maintain it? I've seen some other patches
submitted, but I'm not sure it is being rolled into the "official"
package.

I'm happy to keep my own fork of this code, but it would seem that
others could benefit from patches that others can submit.

Can anyone at Google let me know how this works?

Thanks,

Doug

On Mar 27, 10:39 am, DougC <[email protected]> wrote:
> I have a patch for the Python version of the google-apps-reporting-api-
> client, (http://google-apps-reporting-api-client.googlecode.com/files/
> reporting-api-python-1.0.0.zip)  but I'm unsure how to provide it. The
> existing code hasn't been changed since September 2007, so I'm not
> sure if it's being maintained. The code is interesting, works OK as a
> standalone script, but I've had a very difficult time using it as an
> API without any Python documentation.
>
> That said, the problems I've had may be due to my lack of experience
> with Python and the inability to deduce the API from the code.
>
> The patch that I think is necessary is one word, in the Login()
> function. The current implementation does not return any value and
> ends with:
>
> if name == 'SID':
>     self.token = value
>     return
>
> I've changed this, so that the Login() function returns the login
> token:
>
> if name == 'SID':
>     self.token = value
>     return value
>
> With this change, I'm able to make calls from my own code:
>
> import google.apps.reporting
>
> def get_google_info(admin, password, domain):
>   report = ReportRunner()
>   report.admin_email = admin + "@" + domain
>   report.admin_password = password
>   token = report.Login()
>
>   request = ReportRequest()
>   request.domain = report.GetAdminEmailDomain()
>   request.report_name = "accounts"
>   request.date = report.GetLatestReportDate()
>   request.token = token
>
>   rdata = report.GetReportData(request)
>
>   return rdata
> ---
>
> Again, I am new to Python and may be using this module completely
> wrong. If so, I'd be very interested in the "right way" to use it.
>
> Thanks,
>
> Doug
--~--~---------~--~----~------------~-------~--~----~
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