Programmatically update Google Spreadsheet with JavaScript? - Stack Overflow

Is it possible to update a Google Spreadsheet using JavaScript from a web page?Scenario:1) User lands o

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?

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?

Share Improve this question asked Jan 12, 2013 at 4:57 CrashalotCrashalot 34.6k63 gold badges284 silver badges461 bronze badges 4
  • 1 You can use google app scripts which triggers an event and also we ca use javascript developers.google./apps-script – Jeevan Dongre Commented Jan 12, 2013 at 5:08
  • Thanks but it needs to be run on our own web page. – Crashalot 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. – Alex W 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. – Crashalot Commented Jan 12, 2013 at 10:05
Add a ment  | 

1 Answer 1

Reset to default 1

It is possible, though I found it difficult. See here for all the details: https://developers.google./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./accounts/docs/OAuth2

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745358260a4624241.html

相关推荐

  • Programmatically update Google Spreadsheet with JavaScript? - Stack Overflow

    Is it possible to update a Google Spreadsheet using JavaScript from a web page?Scenario:1) User lands o

    15小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信