Jump to content
McKay Development

metuero

Member
  • Posts

    1
  • Joined

  • Last visited

Reputation Activity

  1. Like
    metuero reacted to Dr. McKay in Uses of steam-user   
    You can use getPersonas to get persona data. Off the top of my head (this might not work), getting an avatar URL would go something like this:
    user.getPersonas(["76561198006409530"], (personas) => {     var hash = personas["76561198006409530"].avatar_hash.toString('hex');     var url = "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/" + hash.substring(0, 2) + "/" + hash + "_full.jpg"; });
×
×
  • Create New...