Using the new Drive SDK, I would like to read and update rows/columns in a native google spreadsheet stored on my google drive, and display them on my web page. I m using Java and App Engine. I found the documentation and DrEdit example confusing, they don't exactly explain how to read/update native google docs. Can someone please explain to me what I need to do step by step, with code examples if possible? Thank you.
The Google Spreadsheets API would be the better choice for interacting directly with row and column data.
Related
i want allow my users to create google drive docs,sheet,folders,files etc. from my google classic site itself.
i don't have any idea how to do this.Can we use google drive api?
if yes ,how to call drive api from apps script to create new google sheets,docs etc.
or
is there any other way to create it.
i want to use this in my google sites
Anybody have any idea please let me know
It should be rather simple. Because you are working within Google Apps Script, you do not need to use the Drive API at all. You simply have to use the services made available to you by Google. Just read their documentation, like here. Right at the top, the first method clearly states SpreadsheetApp.create(name) will create a spreadsheet. Same thing with DocumentApp.create(name), FormApp etc.
I want to start looking at using chrome apps as a possible IT solution. I used this tutorial to create a quick app:
https://developer.chrome.com/apps/app_codelab_basics
My next step is to connect to an external data source, where multiple users could access (read/write) to the same source. Is it possible to read/write to the following, and if so, are there any tutorials:
Google Sheet, stored on google drive
An access db saved in google drive
An Excel file saved on google drive.
Thanks
Have you, by any chance, tried using Google Apps Script for this.
Here's a simple tutorial:
https://zapier.com/blog/google-apps-script-tutorial/
Here's the complete API documentation (small examples included):
https://developers.google.com/apps-script/reference/spreadsheet/
I have configured fairly complex workflows by just using Google Apps Script with various Google Apps.
I would like to programmatically create google spreadsheets that have some columns marked as 'read-only'. Using the web browser client this is straight forward, but I have not found any documentation on how to do this via the API. Is it possible?
You won't be able to do this by relying on the Drive API exclusively. The good thing is, there is a Google Sheets API. This will allow you to access your Sheet file and edit its content. More information can be found on this resource: https://developers.google.com/google-apps/spreadsheets/.
I'm thinking about the followin scenario:
My PHP application push some integers into a google doc table which calculates with this and saves the result of this operations at the end of the table. my php application finally reads the result and displays it on the website.
Is this possible with the Google Drive PHP API?
I found the following:
http://code.google.com/p/google-api-php-client/
https://developers.google.com/drive/
https://developers.google.com/drive/examples/php#setting_up_this_sample_application
But I'm not sure if this would be possible at all? Are there any example applications or scripts in order to read and write google doc tables?
You can use the Spreadsheets API to programmatically read and write to a Google Spreadsheet:
https://developers.google.com/google-apps/spreadsheets/
Can we write our front end design and use the google spreadsheet for the back-end for a website?
Thank You
Google Apps Script might also be a good option for you. You can host your code on the Google servers (all written in JavaScript) with easy access to all the spreadsheet and docs APIs. You can see a lot of tutorials on the site.
Another even simpler option might be Google Forms - if you are just trying to gather some data and record it in the spreadsheet.
You have probably already found an answer or a workaround, but here is an example from Google.
https://developers.google.com/apps-script/storing_data_spreadsheets