且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Node.js Google Drive API-未经同意授权屏幕

更新时间:2023-02-16 16:35:06

请勿使用服务帐户.它没有按照您的想法做.您需要的是为您的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.