upload file into google drive using java api

前端 未结 3 925
后悔当初
后悔当初 2021-01-16 17:50
DocsService client = new DocsService(\"service name\");
client.setUserCredentials(username,password);
File file = new File(filename);
URL url = new URL(\"https://doc         


        
3条回答
  •  猫巷女王i
    2021-01-16 18:20

    I know this question is quite old ,but now google has official support for Java drive api,there is a quick sample to start integrating Drive API with java application. Download drive API client jar files from here

    and if you are developing your application from Java SE don't forget to put servlet api.jar on class path or else you will end up with lot of errors.

提交回复
热议问题