npm install resteemoRESTeemo API wrapper for Node. Powered by Quickfind.
`` bash`
$ npm install resteemo
As per RESTeemo's Terms and Conditions, you must provide contact details in the
user agent of requests. node-resteemo will not fill in these details for you.
` javascript`
var teemo = require('resteemo')('string with contact info');
#### teemo.player.create(platform, summoner)
Returns an Object profile containing ID-based data for String summoner onplatform
String . Account and summoner IDs are not unique across platforms.
` javascript
teemo.player.create('euw', 'guardsmanbob', function(err, profile) {
if (err) throw err;
console.log(profile);
// => {
// => summoner: {
// => id: 20820067
// => },
// => account: {
// => id: 24132405
// => },
// => name: 'Guardsman Bob',
// => internalName: 'guardsmanbob',
// => level: 30,
// => icon: 30
// => }
});
`
#### teemo.player.recentGames(summoner, platform)
> Not ready for use
Returns an Array of the last 10 matches (order is random) for String summonerplatform
on String .
` javascript
teemo.player.recentGames('euw', 'guardsmanbob', function(err, games) {
if (err) throw err;
// Do stuff with Array games.`
}));
#### teemo.player.influencePoints(summoner, platform)
Returns lifetime influence point gains for String summoner on Stringplatform.
` javascript
teemo.player.recentGames('euw', 'guardsmanbob', function(err, points) {
if (err) throw err;
console.log(points);
// => 596797
}));
``
| Short | Full |
|---|---|
| na | North_America |
| br | Brasil |
| ru | Russia |
| euw | Europe_West |
| eun | Europe_East |
| tr | Turkey |
- Initial release