1.0.5 • Published 7 years ago

ripple-node v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

ripple-node

Getting started with ripple-node

install this package: npm install ripple-node

include it into your project:

const rApi = require('ripple-node')

How to use this:

To get a user's profile you should do

const rApi = require('ripple-node');

rApi.getUserByName('jp').then( profile => {
console.log(profile);
});

Or you can do this:

const rApi = require('ripple-node');

rApi.getUserByID('36294').then( profile => {
console.log(profile);
});

To get a recent score you would do:

const rApi = require('ripple-node');

rApi.getUserRecentScore('jp').then( recentScore => {
console.log(recentScore);
});

To get a best score you would do:

const rApi = require('ripple-node');

rApi.getUserBestScore('jp').then( bestScore => {
console.log(bestScore);
});

To get all scores for a map by beatmap id you would do

const rApi = require('ripple-node');

rApi.getScoresByID('75').then( scores => {
console.log(scores);
});

To get all scores for a map by beatmap md5 you would do

const rApi = require('ripple-node');

rApi.getScoresByMD5('a5b99395a42bd55bc5eb1d2411cbdf8b').then( scores => {
console.log(scores);
});
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago