1.0.6 • Published 4 years ago

rainbow6api v1.0.6

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

About

A Rainbow 6 Node Module to get Stats of players. This module allows to get stats of players from ubisoft services. The module requires login info.

Important

Create a new account at https://ubisoft.com for use of the module.

Declare Example

const credentials = {
    email: "xxxxxx@gmail.com",
    password: "xxxxxxxxx123"
}
const R6Api = require("rainbow6api");
let R6 = new R6Api(credentials);
R6.login() // Make sure it is logged in first before running other r6api functions

Documentation

Table of Contents

How to Use

Functions

.getStats(username, platform, type): Enter a username and platform to search

Platforms

xbl: Xbox Live (xbox one)
psn: Playstation Network (ps4)
uplay: Personal Computer (pc)
pc: Personal Computer (pc)

Types

default: Gets general statistics (kills, deaths, wins, losses, etc...)
operators: Gets stats for all operators used
all: Gets every possible statistic for player

Example

let username = "Theboys619"
let platform = "uplay" // Pc also works
R6.getStats(username, platform).then(function(data) {
	console.log(`Kills: ${data.generalpvp_kills}`};
	console.log(data); // log data to see json array of stats (kills/deaths);
});
1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago