English 中文(简体)
需要对谷歌数据预报的使用进行登记?
原标题:Registering your webapp is required for Google Data APIs use?

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,但我不理解如何将非统组织与该组织结合起来。

最佳回答

<>>>。 我需要自己的领域,以便使用GData AP ?。

Registration is optional but recommended.
Web applications that opt not to register with Google can still use OAuth using a lower level of security. In this case, Google does not automatically recognize the calling web application and adds a caution to the Google login page:

enter image description here

All calls requesting or using an OAuth token must be signed, regardless of whether your application is registered with Google or not.
If your application is not registered, to sign the Request you will use the following key and secret:

  • consumer key: "anonymous"
  • consumer secret: "anonymous"

<>>2. 谷歌在网上申请登记后向我提供的关键和秘密参数?

Yes, once you ve registered, Google will provide you with a consumer key (and secret for use with HMAC-SHA1), and a place to upload a public certificate.

enter image description here

问题回答

暂无回答




相关问题
How to make logging.debug work on Appengine?

I m having a tough time getting the logging on Appengine working. the statement import logging is flagged as an unrecognized import in my PyDev Appengine project. I suspected that this was just an ...

gqlQuery returns object, want list of keys

Is there a way to convert the GqlQuery object to an array of keys, or is there a way to force the query to return an array of keys? For example: items = db.GqlQuery("SELECT __key__ FROM Items") ...

Integrating Google AppEngine with a Thick Client

I want to make a multi-user client-server solution with Java Swing thick client as a front-end and Google AppEngine (Java one) as a back-end. The problem is that GAE provides only web-based forms for ...

sorl.thumbnail : thumbnail is not a valid tag library?

I am trying to install sorl.thumbnail but am getting the following error message: thumbnail is not a valid tag library: Could not load template library from django.templatetags.thumbnail, No module ...

热门标签