【问题标题】:How could I input data to other worksheet in the Sheet如何将数据输入到工作表中的其他工作表
【发布时间】:2019-09-24 07:07:57
【问题描述】:

首先,我想向“测试”工作表输入数据,但我不知道如何编写此代码。

其次,我知道每个工作表都有不同的可共享工作表链接(.../edit#gid=267921143)。但是,我使用 Sheet.Best 转换为 API 链接。

适用于代码下方的Sheet的主页(forhere worksheet, link:.../edit#gid=0),可以工作。这就是为什么我想用它来变成其他工作表。

工具:Dialogflow 与 Sheet(SheetDB & Sheet.Best) 集成

有人可以帮我一个忙吗?非常感谢~

 function saveData(agent){
    const{
      name, age, email, phone, gender
    } = agent.parameters;
    const data3 = [{
      Name:name,
      Age:age,
      Email:email,
      Phone:phone,
      Gender:gender
    }];
    axios.post('https://sheet.best/api/sheets/...API...', data3);
  }

enter image description here

【问题讨论】:

标签: google-sheets google-sheets-api dialogflow-es-fulfillment


【解决方案1】:

已经完成了。

链接:https://sheet.best/docs/working-with-tabs

Fix: axios.post('https://sheet.best/api/sheets/...API.../tabs/tablename, data3');

【讨论】:

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