Node.js Google Drive API-未经同意授权屏幕 [英] Node.js google drive api - authorize without consent screen

查看:89
本文介绍了Node.js Google Drive API-未经同意授权屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很有趣,是否可以使用 Google云端硬盘API 在Node.js应用程序中未经同意的屏幕?

I'm interesting is this possible to use Google Drive API without consent screen in Node.js app?

  • 我只想使用启用了应用引擎的帐户. Api必须具有保存文件,共享文件和删除文件的完整权限.
  • 我的应用程序将部署到heroku.

我从Google Drive API的快速入门中获取示例,但我不知道该怎么做.

I'm get example from quickstart from Google Drive API, but I don't have idea how I can do this.

推荐答案

请勿使用服务帐户.它没有按照您的想法做.您需要的是为您的Google帐户存储的刷新令牌.我已经在

Do not use a Service Account. It doesn't do what you think it does. What you need is a stored Refresh Token for your Google Account. I've set out all of the steps at How do I authorise an app (web or installed) without user intervention? (canonical ?) , including sample JavaScript which will run under node.

这篇关于Node.js Google Drive API-未经同意授权屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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