Steam 上的节点 post 请求

Node post request on steam

我正在尝试创建脚本,该脚本可以 post 在我的 Steam 线程中使用节点和请求库进行评论。试图通过做这样的事情来实现:

const body = {
  comment: 'Sometext',
  count: '15',
  sessionid: session_id,
}
bumpingDiscussionsPostsModule.bumpInDiscussion=async() => {
  const postHeader = {
    method: 'POST',
    uri: urlPost,
    headers: {
      Cookie: cookie
    },
    form: JSON.stringify(body)
  }
  const response = await request(postHeader);
  console.log(response);
}

Steam 不断返回我返回 {"success":false},有什么线索是我做错了吗?

我只是格式错误。如果有人可能正在寻找它,这就完成了工作:

const doBump = await fetch(bumpingUri, {
    method: 'post',
    body: `comment=${process.env.BUMP_COMMENT}&count=15&sessionid=${process.env.CONN_SESID}&extended_data=${process.env.EXTENDED_DATA}&feature2=${featureID}oldestfirst=true&include_raw=true`,
    headers: {
     'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
     'accept': 'text/javascript, text/html, application/xml, text/xml, */*',
      Cookie: process.env.CONN_STRING
    }
  });