rep.tf API Wrapper for node.js
Very thin wrapper for the API provided by rep.tf.
Installation
npm install reptf
Usage
var reptf = ; // You can change the timeout value if you wishreptftimeout = 5000; // All methods are "static"reptf; reptf;
Properties
timeout
Timeout value used for HTTP requests. Defaults to 10000ms (10 seconds).
Methods
getBans(steamID, callback)
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.
getProfile(steamID, callback)
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.
License
MIT. See LICENSE
.