使用JavaScript以编程方式更新Google电子表格? [英] Programmatically update Google Spreadsheet with JavaScript?
问题描述
是否可以使用网页上的JavaScript更新Google电子表格?
Is it possible to update a Google Spreadsheet using JavaScript from a web page?
情景:
1)用户登陆网页
2)JS脚本执行,修改Google电子表格
2) JS script executes, modifying Google Spreadsheet
这怎么可能是完成了?
推荐答案
虽然我觉得很难,但这是有可能的。有关所有详细信息,请参阅此处: https://developers.google.com/google-apps/spreadsheets /
It is possible, though I found it difficult. See here for all the details: https://developers.google.com/google-apps/spreadsheets/
如果是私人Google电子表格,那么您需要处理oAuth 2.0(Google的身份验证)。 https://developers.google.com/accounts/docs/OAuth2
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
请点击此处了解如何使用Javascript:
http://code.google.com/p/google-api-javascript-client/wiki/Authentication
See here for how to do that with Javascript: http://code.google.com/p/google-api-javascript-client/wiki/Authentication
这篇关于使用JavaScript以编程方式更新Google电子表格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!