谷歌oauth2身份验证错误

时间:2016-12-28 05:21:43

标签: android oauth-2.0 google-api google-calendar-api google-authentication

我正在尝试构建一个Android应用,以使用Google日历API从Google日历插入和检索事件。

`GoogleAccountCredential mCredential;
mCredential = GoogleAccountCredential.usingOAuth2(
                getApplicationContext(), Arrays.asList(SCOPES))
                .setBackOff(new ExponentialBackOff());`

每当我尝试访问API时,它都会给出错误UNREGISTERED_ON_API_CONSOLE。 我已按照日历API页面上的步骤在开发人员控制台上注册API密钥

0 个答案:

没有答案