Skip to content Skip to sidebar Skip to footer

Write To A Google Spreadsheet From Javascript Using The Public Api Access (no Oauth)

I'd like to allow a user to visit one of my sites, enter some information into a field, and then save that information into a Google Spreadsheet via JavaScript. I don't want the

Solution 1:

All of the examples are for the scenario where the user is using your app to access his own files. In your case, you want the app to access your own file. This isn't easy. The only ways I can see are :-

  1. Use a server app (appengine works well) to do the access
  2. Very carefully set up permissions and store a refresh token in your app.

Option 2 could be your worst security nightmare if you don't do it carefully, and even then may be an infringement of Google T's and C's since it's akin to distributing your password.

Once you figure out the auth, you'll need to check out the spreadsheet API (https://developers.google.com/google-apps/spreadsheets/), as this is the API that allows you to update an existing spreadsheet. The Drive API can only upload an entire new spreadsheet.

Post a Comment for "Write To A Google Spreadsheet From Javascript Using The Public Api Access (no Oauth)"