简体   繁体   中英

Reading Google spread sheet without using any credential in Java

I am working with the google Spreadsheet and wanted to read all the data from it without using any credential.json file.

What I actually want is, If I have been provided a URL for spreadsheets then I should be able to read the data without using any client secrets. How can I do it?

You need to authenticate yourself yo use the API even if the sheet is public.

You could try just to make an HTTP request to actually download the information, take a look at this Gist to see all the formats you can use.

For exemple download/read the file as CSV:

curl 'https://docs.google.com/spreadsheets/d/1pObOjcxHEZHDb0DOA8mxcO3HY_koVcTNdmzjjE7Sj9w/export?format=csv'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM