所以,我有一个酒吧的数字点击列表,我使用Google Spreadsheets作为数据的后端。当一个桶用尽时,我希望酒吧工作人员能够将迎面而来的啤酒复制并粘贴到与刚刚耗尽的桶相对应的细胞行上。发生这种情况时,推送自动化的最佳方法是什么?因此,当他们更换桶时,一旦他们更新了电子表格,就会自动发送一条推文,说明新啤酒的用量。
1 个答案:
答案 0 :(得分:1)
As far as connecting to twitter, which uses OAuth, from Apps Script, you'll need to:
reference the sample OAuth1 apps script library. This github repo has the info on how to reference that library, along with sample code for reference.
wire up to Twitter. That repo also has a sample showing integration with Twitter.
The other code you'll need in Apps Script should implement onEdit(e), to handle the edit event. You'll have to do some work to inspect the range to make sure the edit is one you care about.