Jump to content


Photo

getUserInventoryContents without being logged in?

node.js node-steam-tradeoffer-manager

  • Please log in to reply
2 replies to this topic

#1 QuestionRealQuick1

QuestionRealQuick1

    Member

  • Member
  • PipPip
  • 28 posts

Posted 17 April 2018 - 06:18 PM

how would i go about loading somebodies inventory without being logged into an account?

is that even possible?



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,751 posts

Posted 17 April 2018 - 08:19 PM

You should be able to just call it without logging in.



#3 Ryzl

Ryzl

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 24 April 2018 - 04:15 AM

const SteamCommunity = require('steamcommunity');
let community = new SteamCommunity();

const userID = ""; //user SteamID which inventory you looking for
const appid = "730";  //csgo
const contextid = "2";  // number of inventory?



community.getUserInventoryContents(userID, appid, contextid, false, function(err, inventory){
            if(err){
                console.log(err);
            } else {
                console.log(inventory);
            }            
});


Hi, 

This is only what u need i think, for me is working :) my first post here so be forgiving if i did something wrong :) regards







Also tagged with one or more of these keywords: node.js, node-steam-tradeoffer-manager

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users