Steam.getNewsForApp()

Fetch news feeds for each Steam game

Usage

Hover over inputs/exits for more info.

var Steam = require('machinepack-steam');


// Fetch news feeds for each Steam game

Steam.getNewsForApp({

appid: 400,

count: 3,

maxlength: 300,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

appid required

AppID of the game you want the news of.

400
count

How many news entries you want to get returned.

3
maxlength

Maximum length of each news entry.

300

Exits

error

An unexpected error occurred.

success

OK.

{ appnews: { appid: 400, newsitems: [] } }