【问题标题】:I got empty response when I called IEconService of Steam API using Nodejs当我使用 Nodejs 调用 Steam API 的 IEconService 时得到空响应
【发布时间】:2016-10-06 07:46:10
【问题描述】:

我想列出我所有的交易历史,但我可能做错了。

我称之为 IEconService/GetTradeHistory API

https://api.steampowered.com/IEconService/GetTradeHistory/v1/?key={{API Key}}&format=json&navigating_back=1&get_descriptions=1&include_failed=1&include_total=1

这就是我得到的

{
    "response": {
    }
}

我已经从客户端界面查看了交易记录,如下图有2个:

我尝试调用另一个与 IEconService 无关的 API,它可以正常工作。

附言

  • 我已尝试使用与注册 API 相同的域名。
  • 我尝试使用 passport-openid 包登录 Steam OpenID 连接,但没有成功。
  • 我使用“请求”包来调用 API,但它也不起作用。
  • 即使在 Postman 中也无法使用(仅这些 API)。

感谢您的回复。

【问题讨论】:

    标签: javascript node.js api steam


    【解决方案1】:

    在我上床再次检查我的参数后,我意识到我错过了一些。现在可以了。

    http://api.steampowered.com/IEconService/GetTradeHistory/v1?key={{key}}&language=en_us&format=json&max_trades=100&navigating_back=1&get_descriptions=0&include_failed=1&include_total=1

    如您所见,我忘记了导致我的问题的 max_trades 和其他问题。

    希望对我有所帮助,并为我的胡思乱想感到抱歉。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-25
      • 1970-01-01
      • 1970-01-01
      • 2020-04-21
      • 1970-01-01
      • 2019-11-18
      相关资源
      最近更新 更多