How to call REST API in google app engine

I have 2 GAE. GAE1 has REST API (Tastypie without implementation of oauth authentication). GAE2 calls the REST API of GAE1.

If calling the API:

data = urllib2.urlopen("http://___GAE1____.com/api_ws/api/v1/test/?format=json").read()

the returned result is sign-on page, not JSON result from GAE1.

How to perform authentication hosted by GAE? OAuth2 or API key?

I read https://developers.google.com/api-client-library/python/guide/aaa_oauth

But could not figure out what is client secret, scope (my REST API or some google cloud API?)

链接地址: http://www.djcxy.com/p/80062.html

上一篇: 无法在POSTMan上获得Google oAuth 2令牌

下一篇: 如何在谷歌应用程序引擎中调用REST API