我需要获得一个请求中所有列的列表,并且手动声明我应该传递查询字符串参数:
大多数索引端点的默认页面大小为100个结果。如果同时需要所有结果,则应指定includeAll=true查询字符串参数。
我试过:
var options = {
sheetId: 2252168947361668,
includeAll: true
};
smartsheet.sheets.getColumns(options)
.then(function (data) {
console.log(data);
})
.catch(function (error) {
console.log(error);
});但是它只返回前100列。如何从smartsheet-api将查询字符串参数传递给node.js?
发布于 2015-12-16 04:15:28
queryParameters includeAll参数是查询字符串参数,因此必须将其包含在includeAll对象中。下列各点应适用于你:
var options = {
sheetId: 2252168947361668,
queryParameters: {
includeAll: true
}
};
smartsheet.sheets.getColumns(options)
.then(function (data) {
console.log(data);
})
.catch(function (error) {
console.log(error);
});https://stackoverflow.com/questions/34302039
复制相似问题