Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 避免节点中无限循环的Smartsheet_Node.js_Smartsheet Api 2.0 - Fatal编程技术网

Node.js 避免节点中无限循环的Smartsheet

Node.js 避免节点中无限循环的Smartsheet,node.js,smartsheet-api-2.0,Node.js,Smartsheet Api 2.0,有人知道如何将node.js的change agent头添加到smartsheet api调用中吗?api文档中没有实现,只有Ruby中的一个示例。使用相同的设置不会被webhook接受,因此现在运行API的任何更改都会导致无限循环 let options = { sheetId: SHEET_ID, body: body, header_overrides: {'Smartsheet-Change-Agent': 'MyChangeAgent'} }

有人知道如何将node.js的change agent头添加到smartsheet api调用中吗?api文档中没有实现,只有Ruby中的一个示例。使用相同的设置不会被webhook接受,因此现在运行API的任何更改都会导致无限循环

let options = {
      sheetId: SHEET_ID,
      body: body,
      header_overrides: {'Smartsheet-Change-Agent': 'MyChangeAgent'}
    };

smartsheet.sheets.updateRow(options);
非常感谢

找到了答案-

let options = {
  sheetId: SHEET_ID,
  body: body,
  changeAgent: 'MyChangeAgent'
};

smartsheet.sheets.updateRow(options);