【问题标题】:Function Google Script to display Bitly Count Links on a cell of spreadsheet Google Docs函数 Google Script 在电子表格的单元格上显示 Bitly Count Links Google Docs
【发布时间】:2014-01-29 18:12:42
【问题描述】:

如何创建一个函数来调用 bitly https://api-ssl.bitly.com/v3/link/clicks 的 API URL 来获取给定链接的点击次数。

当我打电话时,我得到这个: {“status_code”:200,“data”:{“units”:-1,“unit_reference_ts”:null,“tz_offset”:-5,“unit”:“day”,“link_clicks”:0},“status_txt” :“好的”}

我想读取一个单元格中的链接并将结果放在另一个单元格中。

我不想使用导入功能,因为它有限制。你不能在每张纸上使用超过 x 个数字

【问题讨论】:

  • 缺少 google-apps-script 标签?你能发布一些代码,或者你发现的细节吗?

标签: google-apps-script google-spreadsheet-api bit.ly url-shortener


【解决方案1】:

我发现解析 JSON 的最佳工具是 this ImportJSON script

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多