I am trying to connect to picasa web albums using this code from a proxy enabled network. The proxy is configured perfectly. I am using Google App Engine on fedora 10.
gd_client = gdata.photos.service.PhotosService() gd_client.email = "[email protected]" gd_client.password = "xxxxxxxx" gd_client.source = 'exampleCo-exampleApp-1' gd_client.ProgrammaticLogin() I have also tried this login page =========== next_url = atom.url.Url('http', settings.HOST_NAME, path='/ picasa') # Initialize a client to talk to Google Data API services. client = gdata.service.GDataService() gdata.alt.appengine.run_on_appengine(client) session_token = None # Find the AuthSub token and upgrade it to a session token. auth_token = gdata.auth.extract_auth_sub_token_from_url (self.request.uri) if auth_token: session_token = client.upgrade_to_session_token (auth_token) if session_token and users.get_current_user (): client.token_store.add_token(session_token) elif session_token: client.current_token = session_token self.response.out.write('<div id="main"></div>') self.response.out.write( '<div id="sidebar"><div id="scopes"><h4>Request a token</h4><ul>') self.response.out.write('<li><a href="%s">Google Documents</a></li>' % ( client.GenerateAuthSubURL( next_url, ('http://picasaweb.google.com/data/',), secure=False, session=True))) self.response.out.write('</ul></div><br/><div id="tokens">') next page ========= ext_url = atom.url.Url('http', settings.HOST_NAME, path='/ picasa') # Initialize a client to talk to Google Data API services. client = gdata.service.GDataService() gdata.alt.appengine.run_on_appengine(client) session_token = None auth_token = gdata.auth.extract_auth_sub_token_from_url (self.request.uri) if auth_token: self.response.out.write("<br>1") client.SetAuthSubToken( client.upgrade_to_session_token(auth_token)) #session_token = client.upgrade_to_session_token (auth_token) Both of these authentication page giving this error - Exception Occurred (, DownloadError('ApplicationError: 2 timed out',), ) I digged down to the code at gdata/service.py and found this function is used - auth_response = self.http_client.request('POST', auth_request_url, data=request_body, headers={'Content-Type':'application/x-www-form-urlencoded'}) response_body = auth_response.read() Please could you help me to find out a way to connect to the picasa web album from a proxy enabled network. Thanks, Shantanu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" 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-Picasa-Data-API?hl=en -~----------~----~----~----~------~----~------~--~---
