Fetch news feeds for each Steam game
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) {
},
});
AppID of the game you want the news of.
400
How many news entries you want to get returned.
3
Maximum length of each news entry.
300
An unexpected error occurred.
OK.
{ appnews: { appid: 400, newsitems: [] } }