Very thin wrapper for the API provided by SteamRep.com.
npm install steamrep
var SteamRepAPI = require('steamrep');
// You can change the timeout value if you wish
SteamRepAPI.timeout = 5000;
// All methods are "static"
SteamRepAPI.isScammer("76561197960435530", function(error, result) {
if(error) {
console.log(error);
} else {
if(result) {
console.log("This user is tagged as 'SCAMMER' at SteamRep.");
} else {
console.log("This user is NOT tagged as 'SCAMMER' at SteamRep.");
}
}
});
SteamRepAPI.getProfile("76561197960435530", function(error, result) {
if(error === null) {
console.log(result);
}
});
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 eithertrue
orfalse
Provides simple yes/no answer about user's scammer status.
steamID
- user's SteamID64 as stringcallback
- should befunction(error, result)
error
comes from the HTTP requestresult
is object returned by the API
Provides SteamRep information about given SteamID64, such as VAC status, reputation status, pending reports and more.
npm test
MIT. See LICENSE
.