2016-10-06 37 views
0

我想列出我所有的交易歷史記錄,但我可能做錯了什麼。當我使用Nodejs調用Steam API的IEconService時,我得到了空的響應

我把這種IEconService/GetTradeHistory API

https://api.steampowered.com/IEconService/GetTradeHistory/v1/?key= {{API密鑰}} &格式= JSON & navigating_back = 1個& get_descriptions = 1 & include_failed = 1 & include_total = 1

這就是我得到的

{ 
    "response": { 
    } 
} 

我已經從客戶端界面的交易歷史檢驗,如下圖所示有2個:

here

我試圖調用另一個API,它是不是IEconService它工作正常。

Ps。

  • 我試圖使用與註冊的API相同的域名。
  • 我試圖登錄蒸汽OpenID連接使用passport-openid包但它不工作。
  • 我使用「請求」包調用API,但它不工作。
  • 即使在Postman中也不行(只有這些API)。

感謝您的回覆。

回答

0

當我睡覺後再次檢查參數後,我意識到我錯過了一些。它現在有效。

http://api.steampowered.com/IEconService/GetTradeHistory/v1?key= {{鍵}} &語言= EN_US &格式= JSON & max_trades = 100 & navigating_back = 1 & get_descriptions = 0 & include_failed = 1 & include_total = 1

正如你可以看到,我忘max_trades和其他導致我問題的原因。

希望這個幫助,併爲我的scatterbrain抱歉。

相關問題