V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cloudzhou
V2EX  ›  程序员

api 化导出数据(excel like)

  •  
  •   cloudzhou · 2020-06-22 21:00:37 +08:00 · 1515 次点击
    这是一个创建于 1395 天前的主题,其中的信息可能已经有所发展或是发生改变。
    因为时常需要导数据给产品 /运营,搞了一个小工具:

    > curl -H 'Authorization: basic test1' -d '[[1,2,3],[4,5,6],[7,8,9]]' https://gitshell.com/sheet/data-711
    https://gitshell.com/sheet/data-711.html

    而访问 https://gitshell.com/sheet/data-711.csv 就是直接的 csv 文件下载

    代码: https://github.com/cloudzhou/script/blob/master/go/sheet.go
    前端使用了一个开源的,mit 协议

    本来想用 google docs 的 API,但是无奈服务器上不能访问

    认证方式很特别,名字先占先得,Authorization 第一次使用后必须每次使用同一个才可以修改
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5278 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 07:43 · PVG 15:43 · LAX 00:43 · JFK 03:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.