Skip to content

Library responsible for intermediating Google Drive actions

Notifications You must be signed in to change notification settings

LeonardoRamos/google-drive-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

google-drive-lib

Library responsible for intermediating Google Drive actions and basic functionalities through a simple service interface.

Setting up

Import the dependency in your project.

<dependency>
   <groupId>com.google.drive.api</groupId>
   <artifactId>google-drive-lib</artifactId>
   <version>1.1.0</version>
</dependency>

<dependency>
   <groupId>com.google.drive.api</groupId>
   <artifactId>google-drive-lib</artifactId>
   <version>1.1.0</version>
   <type>test-jar</type>
   <scope>test</scope>
</dependency>
  • Google Client Credentials

Copy your Google Secret Client Credentials into your project's resources folder with given name: client_secret.json.

If you prefer, you may use a external path for the Credentials file with the following property:

google.api.credentials_path=my_custom_path/client_secret.json

Add the following property for the app's name Credential:

google.api.app_name=myApp
  • Service layer

Inject and instantiate the GoogleDriveServiceImpl in your Service layer.

@Service
public class MyService {

    @Autowired
    private GoogleDriveServiceImpl googleDriveService;

.
.
.
} 

About

Library responsible for intermediating Google Drive actions

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages