ripple-node
v1.0.5
Published
A library to interact with the rippleapi (can also be modified for servers based upon ripple)
Downloads
5
Readme
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);
});