Very thin wrapper for the API provided by rep.tf.
npm install reptf
var reptf = require('reptf');
// You can change the timeout value if you wish
reptf.timeout = 5000;
// All methods are "static"
reptf.getBans('76561197960435530', function(err, res) {
if(!err) {
console.log(res);
}
});
reptf.getProfile('76561197960435530', function(err, res) {
if(!err)
console.log(res);
}
});
Timeout value used for HTTP requests. Defaults to 10000ms (10 seconds).
steamID
- user's SteamID64 as stringcallback
- should befunction(error, result)
error
comes from the HTTP requestresult
is object returned by the API
Provides information about user's bans across various trading communities.
steamID
- user's SteamID64 as stringcallback
- should befunction(error, result)
error
comes from the HTTP requestresult
is object returned by the API
Provides information about user's overall Steam profile.
MIT. See LICENSE
.