使用 JavaScript 以编程方式更新 Google 电子表格? [英] Programmatically update Google Spreadsheet with JavaScript?

查看:24
本文介绍了使用 JavaScript 以编程方式更新 Google 电子表格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用网页中的 JavaScript 更新 Google 电子表格?

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

场景:

1) 用户登陆网页

2) JS脚本执行,修改谷歌电子表格

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆