简体   繁体   English

AWS lambda 中的 Google Drive API

[英]Google drive API in AWS lambda

I want to use Google Drive API in AWS Lambda using Node.JS.我想使用 Node.JS 在 AWS Lambda 中使用 Google Drive API。 Is there any Google drive library for this which can allow me to copy file from one folder and paste it into another in AWS Lambda function without using oAuth as I am not sure if oAuth would be supported on AWS lambda.是否有任何谷歌驱动库可以让我从一个文件夹复制文件并将其粘贴到 AWS Lambda 函数中的另一个文件夹中,而不使用 oAuth,因为我不确定 AWS lambda 是否支持 oAuth。

I came across this: https://github.com/googleapis/google-api-nodejs-client/tree/master/samples/drive我遇到了这个: https : //github.com/googleapis/google-api-nodejs-client/tree/master/samples/drive

but it doesn't look like it would work in AWS as it is using oAuth.但看起来它在 AWS 中不起作用,因为它使用的是 oAuth。

Edit: I am only going to access my account.编辑:我只会访问我的帐户。

Any help is appreciated.任何帮助表示赞赏。

Yes it is entirely possible.是的,这是完全可能的。 I would Start Here and also look at the examples here .我会从这里开始,也看看这里的例子。 The fact that it's using oAuth doesn't prevent it from working in AWS or a lambda.它使用 oAuth 的事实并不妨碍它在 AWS 或 lambda 中工作。 You will need to setup and application in google to be allowed to oAuth against it, and information about that can be found Here .您需要在 google 中进行设置和应用,才能对其进行 oAuth,相关信息可以在此处找到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM