2.4.1 • Published 11 years ago

resteemo v2.4.1

Weekly downloads
20
License
-
Repository
github
Last release
11 years ago

node-resteemo

RESTeemo API wrapper for Node. Powered by Quickfind.

Installation

$ npm install resteemo

API

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.

var teemo = require('resteemo')('string with contact info');

Player requests

teemo.player.create(platform, summoner)

Returns an Object profile containing ID-based data for String summoner on String platform. Account and summoner IDs are not unique across platforms.

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 summoner on String platform.

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 String platform.

teemo.player.recentGames('euw', 'guardsmanbob', function(err, points) {
  if (err) throw err;

  console.log(points);
  // => 596797
}));

Supported platforms

Release notes

1.0.0

  • Initial release
2.4.1

11 years ago

2.4.0

11 years ago

2.3.0

11 years ago

2.2.0

11 years ago

2.1.0

11 years ago

2.0.0

11 years ago

1.2.1

11 years ago

1.2.0

11 years ago

1.1.0

11 years ago

1.0.0

11 years ago