5

Is it possible to update a Google Spreadsheet using JavaScript from a web page?

Scenario:

1) User lands on web page

2) JS script executes, modifying Google Spreadsheet

How can this be done?

4
  • 1
    You can use google app scripts which triggers an event and also we ca use javascript developers.google.com/apps-script Commented Jan 12, 2013 at 5:08
  • Thanks but it needs to be run on our own web page. Commented Jan 12, 2013 at 5:32
  • @Crashalot Javascript can only access the current page, so you can't access Google's spreadsheet pages from your own web page. Commented Jan 12, 2013 at 5:41
  • 2
    Thanks, @AlexW! We're aware of this, which is why we're asking if any APIs or Google libraries exist to allow JavaScript on external web pages to modify a Google Spreadsheet. Commented Jan 12, 2013 at 10:05

1 Answer 1

1

It is possible, though I found it difficult. See here for all the details: https://developers.google.com/google-apps/spreadsheets/

If it is a private Google Spreadsheet then you'll need to deal with oAuth 2.0 (Google's authentication). https://developers.google.com/accounts/docs/OAuth2

See here for how to do that with Javascript: http://code.google.com/p/google-api-javascript-client/wiki/Authentication

Sign up to request clarification or add additional context in comments.

1 Comment

any inputs for doing it using C#?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.