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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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
There's a .NET API available for download, although it's in beta I've used it without problem.
https://developers.google.com/drive/downloads
回答2:
DocumentsService myService = new DocumentsService("application name"); myService.setUserCredentials("email", "password"); DocumentEntry newEntrys = myService.UploadDocument("pdf path", @"upload file name");
But I have take exception Execution of request failed: https://docs.google.com/feeds/default/private/full?convert=false