Upload files to Google Drive programmatically

后端 未结 2 1187
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-24 17:51

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

相关标签:
2条回答
  • 2021-01-24 18:07

    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

    0 讨论(0)
  • 2021-01-24 18:26

    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

    0 讨论(0)
提交回复
热议问题