以编程方式将文件上传到Google云端硬盘
问题描述:
我的要求是将用户在运行时选择的单个文件上传到Google驱动器.我正在从用户那里获取电子邮件ID和密码.怎么做?如果我从用户那里得到任何其他要求?有可行的解决方案吗?
My requirement is to upload a single file which will be selected by the user during runtime to Google drive. I am getting email id and password from user. How to do it? If i any other requirement get from users? any feasible solution is there?
答
您可以使用Google云端硬盘SDK/API,如果您仔细阅读文档,这是相当简单的事情,
You can use the Google Drive SDK/API, it's fairly simple stuff if you read through the documentation,
https://developers.google.com/drive/
https://developers.google.com/drive/manage-uploads
有一个.NET API可供下载,尽管它是Beta版,但我使用它没有问题.
There's a .NET API available for download, although it's in beta I've used it without problem.