'Sorry, that page does not exist.' Twitter API 中 lists/statuses 的代码 34

'Sorry, that page does not exist.' code 34 for lists/statuses in Twitter API

我认为我做的对。但它不断给我打电话的错误。我是否必须在 Twitter 设置中为 lists/statuses 设置开发环境,或者是否需要在设置页面中完成其他任何操作。

错误

[ { code: 34, message: 'Sorry, that page does not exist.' } ]

代码

var Twitter = require("twitter");

var client = new Twitter({
  consumer_key: "", //Removed it
  consumer_secret: "",
  access_token_key: "",
  access_token_secret: "",
});
  var params = {
  list_id: some_id, // Removed it
  include_rts: false,
  exclude_replies: true,
};

client
  .get("lists/statuses", params)
  .then((data) => {
    console.log(data);
  })
  .catch((err) => {
    console.log(err);
  });

适用于 lists/list but it doesn't work for lists/statuses...

参数选项中没有exclude_replies。 你应该做

var params = {
  list_id: some_id, // Removed it
  include_rts: false,
};

这会起作用...