Muh*_*edy 23 google-docs google-drive-api
我想从Google云端硬盘电子表格向某些REST服务发送HTTP请求.
这可能吗?
phe*_*ris 23
使用Google Apps脚本,您可以从Google文档/表格/等内部向外部API发出HTTP请求.使用UrlFetchApp类:
var url = 'https://gdata.youtube.com/feeds/api/videos?'
+ 'q=skateboarding+dog'
+ '&start-index=21'
+ '&max-results=10'
+ '&v=2';
var response = UrlFetchApp.fetch(url);
Logger.log(response);
Run Code Online (Sandbox Code Playgroud)
以下是调用Facebook的脚本示例(URL类似于count):
https://docs.google.com/spreadsheet/ccc?key=0AqxQZA5PONnpdDhKSTdnZ2ZqVkJGem5lUVdIUnlud2c#gid=0
是的,您可以使用IMPORTDATA
。它旨在与CSV数据一起使用,但会加载您向其抛出的所有URL:
=IMPORTDATA("/sf/ask/1674203261/")
Run Code Online (Sandbox Code Playgroud)
新行字符在电子表格中开始新行,并且单元格中显示的值是可引用的。将此公式放在A1
其自己的工作表中,并放入不同工作表中的参考单元格。
归档时间: |
|
查看次数: |
17196 次 |
最近记录: |