我設置由following this sweet Medium tutorial進口JSON到谷歌電子表格。更新ImportJSON自動
它做它的工作好 - 採取這一API調用
[
{"day":"2015-08-05","new_users":103},
{"day":"2015-08-06","new_users":255},
{"day":"2015-08-07","new_users":203},
{"day":"2015-08-08","new_users":198},
{"day":"2015-08-09","new_users":273},
{"day":"2015-08-10","new_users":373},
{"day":"2015-08-11","new_users":189},
{"day":"2015-08-12","new_users":228},
{"day":"2015-08-13","new_users":167}
]
並將其轉變成:
然而,正如你可以看到,這個API獲取的每日更新。所以我想在打開表單時刷新API調用 - 不僅在編輯單元格時。
我已經researched a ton,也嘗試添加觸發器,但我嘗試到目前爲止都失敗了。 這不應該是這個難...任何想法?我錯過了什麼嗎?
我也將增加&獎勵賞金(50)lateron,因爲這是對我很重要。
您可以使用[onOpen](https://)[flush](https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet-app?hl=en#flush()) developers.google.com/apps-script/guides/triggers/#onopen)觸發器。 –
這是行不通的... –
「採取這個API」鏈接返回「Heroku |沒有這樣的應用程序」 –