Closed woolfi182 closed 7 years ago
You pass an account id (which is a Number
) as partnerSteamId
(which is why Long crashes). You should pass the account id as partnerAccountId
. partnerSteamId
is 64-bit SteamID (a String
).
thanks, but it doesn't work too:
steamTrade.loadPartnerInventory({
partnerSteamId: 76561198145040257,
appId:730,
contextId:2
}, (err,inv,curr)=> { ...});
Error: missing required parameter
I tried to do other things, like
I set one of an above things, but it didn't help me
Other info:
As I said, it should be a String
:
steamTrade.loadPartnerInventory({
partnerSteamId: '76561198145040257',
appId: 730,
contextId: 2
}, (err,inv,curr)=> { ...});
Error: missing required parameter
Also make sure you initialize the library correctly and your session is valid.
I sent it as a Number and as a String, but results were the same.
Error: missing required parameter
I tried to get data from url: http://steamcommunity.com/profiles/76561198145040257/inventory/json/570/2 and it was Ok
Than, I researched query built your library and was supprised, it was something like this: uri: https://steamcommunity.com/tradeoffer/new/partnerinventory/?sessionid=&partner=76561198145040257&appid=570&contextid=2 referer: https://steamcommunity.com/tradeoffer/new/?partner=184774529
So, when I pasted the above uri in a browser I had this:
{"success":false,"error":"missing required parameter"}
I think that referer needs accessToken
Also make sure you initialize the library correctly and your session is valid.
I'm sure that session is valid, because I can get my inventory, but cannot get partner account
Make sure you setup sessionID
correctly in setup()
, because sessionid
is missing in URL you provided above.
Thanks a lot, it works clearly
It was my fault, I wrote sessionId
instead of sessionID
.
Cheers, I use node-steam-tradeoffers, which use a long library I tried to run
steamTrade.loadPartnerInventory
function but had an error instead:I wrote about this trouble to Long issues #37 Think, you must know that