I m very new in appengine development and I m trying to develop some tests apps that make use of Google Data API s.
I m following this tutorial: http://code.google.com/apis/gdata/docs/auth/oauth.html#OAuthAuthorizeToken
I have some test apps on my appspot account, but I can t register these webapps as Google says, I need my own domain for use GData API s?
Are, key and secret, parameters that Google give to me after webapp registration?
法典:
String CONSUMER_KEY = "example.com";
String CONSUMER_SECRET = "abc123doremi";
GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters();
oauthParameters.setOAuthConsumerKey(CONSUMER_KEY);
oauthParameters.setOAuthConsumerSecret(CONSUMER_SECRET);
- What is a best practice to get these values, key and secret? I was following this tuto too, Retreiving GData Feeds, and I m confusing about the Suggested enhancements
This article slightly oversimplifies the process for the sake of clarity: in your own application, you would likely make use of the UserService in both step1 and step2 to authenticate a user. Your application would persist the request token. When a user finished the step of authorizing your application, you would fetch the request token from the datastore, upgrade it to an access token, then persist the access token key/secret pair in the datastore and associate it with the logged in user. On subsequent visits to your application by the user, you would simply check for the presence of an access token and attempt to make API calls - the user never has to go through the authorization step again unless they revoke your credentials or you delete their access token from the datastore. Describing these steps is slightly out of the scope of this article, however, they are a great set of "next steps" for developers to guide themselves towards mastering using OAuth and GData with App Engine.
http://code.google.com/webtoolkit/doc/1.6/tutorial/appengine.html#user' rel=“nofollow”>StockWatcher example,但我不理解如何将非统组织与该组织结合起来。