Hi tijer, I should be possible to set the authorization header. Are you using the Java runtime or Python.
For Java, I looked at the gdata-java-client as an example (since you can use this library on App Engine) and it uses httpConn.setRequestProperty(name, value); Where httpConn is an HttpURLConnection. To set the Authorization header (this was in /trunk/java/src/com/google/gdata/client/http/HttpGDataRequest.java). If you feel like using the existing Java library for the Analytics API, a new download has just been released which includes convenience classes for this API. Happy coding, Jeff On Tue, Apr 21, 2009 at 6:32 PM, tijer <[email protected]> wrote: > > Hi, I'm trying to use the new Google Analytics API with App Engine. > > It works great on the development server locally, but as soon as I > upload it to the production environment the authorization doesn't seem > to go through. > > I call https://www.google.com/accounts/ClientLogin as specified in the > api, then I pull the Auth= part and add it to an Authorization header > that calls Google Analytics for a crosscut of data. > > It works in the development server, but when I do the same in the > production environment I get the Auth= token from > https://www.google.com/accounts/ClientLogin just fine, but as soon as > I call Analytics using the token I get an error that the Authorization > did not come through. > > Is the Authorization header disabled in the production environment? Or > how do I solve this problem? > > Thx > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" 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-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
