Upload files to Google Drive programmatically

后端 未结 2 1208
爱一瞬间的悲伤
爱一瞬间的悲伤 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: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

提交回复
热议问题