Jav Google Drive Instant

// Set up authorization flow GoogleAuthorizationCodeFlow flow = new GoogleAuthorizationCodeFlow.Builder(GoogleNetHttpTransport.newTrustedTransport(), GSON_FACTORY, clientSecrets, DriveScopes.all()) .setAccessType("offline") .setApprovalPrompt("auto") .build();

// Call the Drive v3 API // Retrieve a list of File resources. System.out.println("Files:"); service.files().list().execute().getFiles().forEach(file -> System.out.println(file.getName())); jav google drive