google oauth2 authentication error

萝らか妹 提交于 2019-12-13 12:54:47

问题


I am trying to build an android app to insert and retrieve events from google calendar using Google calendar API.

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

whenever I try to access the API it gives me the error UNREGISTERED_ON_API_CONSOLE. I have followed the steps on calendar API Page to register API key on developer console

来源:https://stackoverflow.com/questions/41355802/google-oauth2-authentication-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!