Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven dependency for Google Spreadsheet

Added the following dependency in pom.xml.

<dependency>
    <groupId>com.google.api.client</groupId>
    <artifactId>google-api-data-spreadsheet-v3</artifactId>
    <version>1.0.10-alpha</version>
</dependency>

But it doesn't seem to work. It doesn't contain any of the required classes. For example, SpreadsheetService, SpreadsheetFeed, SpreadsheetEntryetc.

Is there any other maven repository for Google Spreadsheet?

Also, in this documentation, they haven't mentioned any maven repository. So, do I have to manually download the required JARs and add them to my project?

like image 780
Bilesh Ganguly Avatar asked Mar 16 '16 07:03

Bilesh Ganguly


1 Answers

After some searching and experimentation, I finally found the dependency which contains the required classes to work with Google Spreadsheets. Here it is -

<dependency>
    <groupId>com.google.gdata</groupId>
    <artifactId>core</artifactId>
    <version>1.47.1</version>
</dependency>

To test this, I used the code given here.

As far as getting authorization is concerned, look at this answer.

like image 151
Bilesh Ganguly Avatar answered Oct 17 '22 09:10

Bilesh Ganguly