• 请不要在回答技术问题时复制粘贴 AI 生成的内容
cloudzhou
V2EX  ›  程序员

api 化导出数据(excel like)

  •  
  •   cloudzhou · Jun 22, 2020 · 2542 views
    This topic created in 2169 days ago, the information mentioned may be changed or developed.
    因为时常需要导数据给产品 /运营,搞了一个小工具:

    > 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 第一次使用后必须每次使用同一个才可以修改
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3308 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 5414617a · 49ms · UTC 11:44 · PVG 19:44 · LAX 04:44 · JFK 07:44
    ♥ Do have faith in what you're doing.