Hello Jason, Can you please confirm which URL you are using? This URL https://www.google.com/a/cpanel/ <http://goog_1416146249/> {domain}/ReportGviz?reportKey={reportKey}&reportDate={reportDate} is for the Reporting Visualization API and works perfectly without login. Please try this URL on your browser and tell me if its working for you. Refer : Google Apps Reporting Visualization API Reference<http://code.google.com/googleapps/domain/reporting/google_apps_reporting_visualization_api.html>
In your last mail, you have given this URL 'https://www.google.com/a/cpanel/.../ReportingDataSource?...'. This is different from the one above. I am unable to fetch my report using this URL. Can you please check if you have shared the correct URL? Also, please give the link to the document from where you have taken this URL. so that I can verify if you are using the correct source. Thank you, Shraddha Gupta Developer Programs Engineer Hyderabad, Google India. On Sat, Jan 14, 2012 at 6:57 PM, Shraddha Gupta <[email protected]>wrote: > Hello, > > I tried opening this URL on the browser and it returns data for me without > login. > I dont know what might the reason that you are asked to login. > I will get more information on this and let you know if I find out > anything. > > Thank you, > Shraddha Gupta > Developer Programs Engineer > Hyderabad, Google India. > > > > On Sat, Jan 14, 2012 at 5:58 PM, Jason <[email protected]> wrote: > >> Hi. >> >> I've written a google app engine app that returns the URL: >> >> url = 'https://www.google.com/a/cpanel/.../ReportingDataSource?...' # >> info stripped for privacy >> req = urllib2.Request(url) >> response = urllib2.urlopen(req) >> page = response.read() >> >> When I run this on my PC, it works fine if I am logged into google - >> page contains the data. If I log out of google, page contains login >> html. >> >> This is consistent with what happens in a browser - try it - if you >> are logged into google when you use a URL of this form, the data is >> returned. Otherwise you will be sent a login page. >> >> Similarly, if the app runs under google's app engine infrastructure >> (from cron), a login page is returned, since google apps has been >> accessed without any auth context. >> >> So unless I am completely missing something, the question remains - is >> it possible to use oath or similar to authenticate so that this URL >> can be accessed? >> >> Thanks, >> >> J. >> >> -- >> 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. >> >> > -- 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.
