google drive api错误403访问未配置 [英] google drive api error 403 Access Not configured

查看:22
本文介绍了google drive api错误403访问未配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用驱动 sdk 上传图像的 Android 应用程序.昨天花了几个小时设置 api 访问并让上传工作(我总是遇到相同的错误 403 访问未配置),今天在另一台计算机上工作,我再次收到此错误.

I am developing an Android app which uses drive sdk to upload an image. After spending yesterday hours on setting up the api access and getting the upload to work (i got always the same error 403 Access not configured), today at work on an other computer, the i get this error again.

我已开启 Drive SDK 和 Drive API,昨天开启 Cloud Storage API 后错误消失了.这也很奇怪,因为我在任何地方都没有说谷歌应该打开它.

I have turned Drive SDK and Drive API on and yesterday the error disappeared after turning Cloud Storage API on. This is also very weird because I nowhere Google says that this should be on.

我还尝试使用来自该工作站的指纹创建一个新的客户端 ID,但这也无济于事.

I also tried to create a new client id with a fingerprint from this workstation, which also doesn't help.

有什么想法吗?

推荐答案

在你的 Google API Console>API Acess 下,你有没有为 Android 设置正确的例子,特别是检查包名:

Under your Google API Console>API Acess, do you have the right settings for Android here is and example, Especially check the package name:

客户端 ID:6756856856-lv3w3qw268df7235w3twtw3tqwq3fg4l3gdi.apps.googleusercontent.com

Client ID: 6756856856-lv3w3qw268df7235w3twtw3tqwq3fg4l3gdi.apps.googleusercontent.com

--重定向URI:urn:ietf:wg:oauth:2.0:oobhttp://localhost

--Redirect URIs: urn:ietf:wg:oauth:2.0:oob http:/localhost

--应用类型:Android

--Application type: Android

--包名:com.l2c.grants+

--Package name: com.l2c.grants+

--证书指纹(SHA1):22:22:22:22:22:1A:05:81:22:CB:22:22:06:22:2222C:7B:22:22

--Certificate fingerprint (SHA1): 22:22:22:22:22:1A:05:81:22:CB:22:22:06:22:2222C:7B:22:22

--深度链接:禁用

这个错误发生在哪里,是在用户点击链接登录谷歌之后,还是在他们登录并且您的应用正在上传文件之后?

Where is this error occuring, is it after the user clicks the link to sign in to google, or after they have signed in and your app is uploading the file?

这篇关于google drive api错误403访问未配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆