关于如何使用支持的API将javascript客户端(非小工具)写入私有Google电子表格,我感到非常困惑?我没有遇到OAuth2 Drive API客户端的问题,但是没有电子表格支持!
https://developers.google.com/apis-explorer
此问题粗略地要求电子表格API显示在该页面上:
http://code.google.com/p/google-api-javascript-client/issues/detail?id=37
我可能遗漏了一些明显的东西,所以谢谢你的善意帮助我......
更新:
哇,这是踢我的背后!因此,我将尝试从Oauth2工作流中获取access_token,然后设置gdata API Authorization标头,如下所示:
service = new google.gdata.client.GoogleService('testapp');
service.setHeaders({'Authorization': 'Bearer '+ access_token});
Run Code Online (Sandbox Code Playgroud)
不幸的是,chrome控制台显示当我执行类似操作时,此标头实际上并未发送到Google
service.getFeed(url, cb, eb);
Run Code Online (Sandbox Code Playgroud)
Uffff!
当我创建脚本副本以将代码分叉到另一个项目时,我仍然试图从某种方式"失去"Google Apps脚本中恢复...我的想法是尝试通过驱动器下载旧版本的Google Apps脚本API,但此页面表明可能无法实现.
API无法通过版本控制,发布或执行脚本等操作.
所以无论如何我都尝试过这个错误......
<HttpError 400 when requesting
https://www.googleapis.com/drive/v2/files/..snipped../revisions?alt=json
returned "File does not support revisions">
Run Code Online (Sandbox Code Playgroud)
那么,没有机制可以下载以前版本或Google Apps脚本的"修订版"吗?我希望能够访问script.google.com界面中显示的"修订版1":