我正在查看 http://code.google.com/intl/sv-SE/apis/gdata/docs/auth/authsub.html 和 http://code.google.com/intl/sv-SE/appengine/文章/java/retrieving_gdata_feeds.html。
我的代码看起来像这样生成 URL
String nextUrl = "http://myapp.appspot.com/retrieveToken/";
String scope = "http://www.google.com/calendar/feeds/";
boolean secure = false; // set secure=true to request secure AuthSub tokens
boolean session = true;
String authSubUrl = AuthSubUtil.getRequestUrl(nextUrl, scope, secure, session);
生成的 url 看起来像这样
https://www.google.com/accounts/AuthSubRequest?next=http%3A%2F%2Fmyapp.appspot.com%2FretrieveToken%2F&scope=http%3A%2F%2Fwww.google.com%2Fcalendar%2Ffeeds%2F&secure=0&session=1
看起来不错.. 但是,当我按照 URL 操作时,我被告知类似以下内容
"http://appspot.com" is not registered.
(我用瑞典语得到它:)
这里有什么问题?