using Oauth to access app engine pull queue from non app engine server
I am trying to access my app engine applications pull queue from a separate python application. Here's what I know:
- I need to use oauth to authenticate
- I need to use Google's rest api
- I need 开发者_如何学Goto define a pull queue in my app engine project that has an acl list which specifies which account is granted access to the queue
I'm able to make a request to get a task from the pull queue, but it gives me an error saying Login Required
because I haven't authenticated. I have looked through the documentation (rest api doc, pull queue doc), but i can't figure out how to pass in my username and password to authenticate with oauth.
Use the google-api-python-client library.
It has a sample to access the TaskQueue APIs through Oauth2 authentication.
Have you read the OAuth for Python overview for AppEngine? It goes over how to do the OAuth login for App Engine.
精彩评论