how can I fetch data from a google spreadsheet? It's not something like embedding a google doc on a webpage. Suppose, you have a table consisting of 10 rows and 10 columns at google doc. Now, you created a 10x10 table on a PHP webpage. Now you will show the respective values of the cells from that google doc to your php page. It's just like fetching data from a MySQL database and showing them on your web page. But here instead of using a MySQL database, I want to use Google Doc and do the rest. But how can I do it?
Thank you.
Click on the + icon and select Import. A variety of platform selections will pop up, including Google Sheets and Microsoft Excel. Select Google Sheets from the options. In the popup window, select either the Google Sheets file from your drive that you wish to import, and click Continue.
Google has a REST api for spreadsheets and native apis for many languages.
https://developers.google.com/sheets/api
If your data is the typical table layout (rows of data with a header row) - then you might find this python library helpful:
http://sheetsync.readthedocs.org/en/latest/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With