Jump to content


Photo
Suggestion

Steam User Apps

node.js node-steamcommunity

  • Please log in to reply
1 reply to this topic

#1 shustrik35

shustrik35

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 11 April 2019 - 12:44 PM

Hey.

 

I found a method to get steamApps of account. Would be great to see that in CSteamUser methods  :). Cookies must be provided.


const xml = await new Promise((resolve_, reject_) => {
  this._community.httpRequestGet(
    `https://steamcommunity.com/profiles/[U:1:69762859]/games?xml=1`,
    (err: Error, result: any) => {
      if(err) reject_(err);
      resolve_(result.body);
    }
  );
});

//Sometimes iam getting ":0:" id part by SteamID.getSteam3RenderedID() and this method isn't work. 
//So i just replaced it with ":1:" and it works well at least on my tests.   

Edited by shustrik35, 11 April 2019 - 12:50 PM.


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,111 posts

Posted 11 April 2019 - 04:51 PM

You should use the WebAPI to get games owned by a user.







Also tagged with one or more of these keywords: Suggestion, node.js, node-steamcommunity

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users