lib/passport-steam/strategy.js
function getUserProfile(key, steamID, callback) {
  var steam = new SteamWebAPI({ apiKey: key, format: 'json' });

  steam.getPlayerSummaries({
    steamids: [ steamID ],
    callback: function(err, result) {
      if(err) {
        return callback(err);
      }

      var profile = {
        provider: 'steam',
        _json: result.response.players[0],
        id: result.response.players[0].steamid,
        displayName: result.response.players[0].personaname,
        photos: [{
          value: result.response.players[0].avatar
        }, {
          value: result.response.players[0].avatarmedium
        }, {
          value: result.response.players[0].avatarfull
        }]
      };

      callback(null, profile);
    }
  });
}
function getUserProfile(key, steamID, callback) {
  var steam = new SteamWebAPI({ apiKey: key, format: 'json' });

  steam.getPlayerSummaries({
    steamids: [ steamID ],
    callback: function(err, result) {
      if(err) {
        return callback(err);
      }

      var profile = {
        provider: 'steam',
        _json: result.response.players[0],
        id: result.response.players[0].steamid,
        displayName: result.response.players[0].personaname,
        photos: [{
          value: result.response.players[0].avatar
        }, {
          value: result.response.players[0].avatarmedium
        }, {
          value: result.response.players[0].avatarfull
        }]
      };

      callback(null, profile);
    }
  });
}
function getUserProfile ( key , steamID , callback ) { var steam = new SteamWebAPI ( { apiKey : key , format : 'json' } ) ; steam . getPlayerSummaries ( { steamids : [ steamID ] , callback : function ( err , result ) { if ( err ) { return callback ( err ) ; } var profile = { provider : 'steam' , _json : result . response . players [ 0 ] , id : result . response . players [ 0 ] . steamid , displayName : result . response . players [ 0 ] . personaname , photos : [ { value : result . response . players [ 0 ] . avatar } , { value : result . response . players [ 0 ] . avatarmedium } , { value : result . response . players [ 0 ] . avatarfull } ] } ; callback ( null , profile ) ; } } ) ; }
Retrieve user's Steam profile information.

@param  {String} key     Steam WebAPI key.
@param  {String} steamID SteamID64.
@return {Object}         User's Steam profile.
Retrieve user s Steam profile information .