On Wed, Jul 29, 2009 at 4:02 PM, Dave <dabo...@gmail.com> wrote: > > I'm trying out the basic Google Data API examples within my AppEngine > application. I had a couple questions > > 1) I tried a simple example of requesting a list of a user's documents > from within a simple python script on my computer, like this: > > import gdata.docs.service > > # Create a client class which will make HTTP requests with > Google Docs server. > client = gdata.docs.service.DocsService() > # Authenticate using your Google Docs email address and > password. > client.ClientLogin('userxxx', 'passxxx') > > # Query the server for an Atom feed containing a list of your > documents. > documents_feed = client.GetDocumentListFeed() > # Loop through the feed and extract each document entry. > for document_entry in documents_feed.entry: > # Display the title of the document on the command line. > print document_entry.title.text > > When I do this, will the traffic for this be encrypted or cleartext > over the internet? How about when/if I do it within the context of an > app in the AppEngine? If not, how do I make it secure/encrypted? (I > know that the password here is sent cleartext. What I'm interested in > knowing is if the reply from Google, containing the data about the > docs, is cleartext or not).
The password is not sent plaintext - it uses ClientLogin, which doesn't transmit the password in plaintext. The response will use HTTP (plaintext) - but in this case, given that the API is hosted at Google, as is your App Engine app, the opportunity for anyone to intercept that plaintext is pretty minimal. > > 2) How do I port this code into my app? I tried adding the first line > of code into a working app on AppEngine, and get: > NameError: global name 'gdata' is not defined > > If I try to add "import gdata.docs.service, then I get the error: You need to include the gdata library in your app - it's not supplied as part of the SDK. -Nick Johnson > > > The server encountered an error and could not complete your request. > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---