json - Is there a RESTful Google Sheets API for reading rows from one sheet? -
here's google sheet in comma-separated form:
row, title 1, "green eggs , ham" 2, "war , peace" 3, "good burger: movie: book"
what url must enter browser data in json or xml?
here working me xml
https://spreadsheets.google.com/feeds/list/yourspreadsheetid/od6/public/values
and json:
https://spreadsheets.google.com/feeds/list/yourspreadsheetid/od6/public/values?alt=json
that spreadsheet published web. if sheet not published web, error:
we're sorry. document not published.
here's information documentation. if info wrong, knows better, please comment.
the documentation sheets rest api @ following link:
the way rest api works, https or post request must made. in google sheets api documentation, you'll see sections show headings these:
protocall java .net
to see raw request url, need click protocall tab.
the way can information out of spreadsheet without going through authorization process, if spreadsheet published web. so, if trying data out of spreadsheet rest api don't want publish web, need go through authorization process.
quote google documentation:
when application requests non-public user data, must include authorization token. token identifies application google.
a url typed browser's address bar request. requires post request not used in browser's address bar. though request can made in browser's address bar, http requests still need appropriate authorization header. don't think can in browser's address bar.
i did find documentation:
simple example of retrieving json feeds spreadsheets data api
i took settings url, , pasted browser tab, didn't output browser. if url correct, , working, data being returned request may not display in browser. need handle data being returned.
Comments
Post a Comment