2014-05-13 40 views
0

我想上传一个文件从我的电脑卷曲到我的谷歌驱动器(语言c)。 因此,在大量帖子和文档之后,我创建了一个Google帐户,我使用Drive API定义了一个项目。 我正在尝试使用我的Client_ID获取授权码。授权谷歌驱动卷曲(语言c)

卷曲-v -k “https://accounts.google.com/o/oauth2/auth” -d “的client_id = myclientId.apps.googleusercontent.com &范围= https://www.googleapis.com/auth/drive.file&response_type=code&redirect_uri=https://drive.google.com

和响应是400错误的请求,我应该怎么办?

回答

0

redirect_uri在您的Google API项目中设置。它应该是您身份验证返回的文件。我不认为&redirect_uri=https://drive.google.com是正确的。

+0

感谢您的回答。我把文件的路径,但我有400响应。我重试了上面的命令,并且“302暂时移动了” – user3632764