【发布时间】:2012-11-19 06:25:05
【问题描述】:
我正在尝试使用 Google Play 服务为 Android 上的 Google Cloud Storage 获取 Oauth2 令牌。我正在使用以下代码
try {
gsToken=GoogleAuthUtil.getToken(this, email,
"https://www.googleapis.com/auth/devstorage.read_only");
} catch (IOException e) {
e.printStackTrace();
} catch (UserRecoverableAuthException userAuthEx) {
startActivityForResult(userAuthEx.getIntent(),1);;
} catch (GoogleAuthException e) {
}
这会引发 GoogleAuthException。 Google PLAY 服务目前不支持此范围吗??
【问题讨论】:
标签: android oauth-2.0 google-cloud-storage google-play-services