3. Detailed Methods for Ratings - GeopJr/tankionline.js GitHub Wiki
For this page, I will assume the example code is this:
Ratings.stats().then(data => {
//data.method
}).catch(error => { console.log(error)});
Basic info
.name
//responds with their name
.premium
//responds with Yes/No, depending on whether or not user has premium
.rank
//responds with the name of their rank
.rankimg
//responds with an image to the icon of their rank
.golds
//responds with the amount of their gold boxes
.crystals
//responds with the amount of their crystals
.kills
//responds with the amount of their kills
.deaths
//responds with the amount of their deaths
.kd
//responds with their k/d ratio
.resistanceModules
//responds with the amount of their resistance modules
.gearScore
//responds with the amount of their GS
Advanced
Exp
.exp.expNow
//responds with current amount of their xp
.exp.expNext
//responds with the amount of xp the next rank requires
.exp.expLeft
//responds with the amount of xp user needs to get to the next rank
Playtime
.playtime.hours
//responds with user's hours of playtime
.playtime.minutes
//responds with user's minutes of playtime
.playtime.seconds
//responds with user's seconds of playtime
Supplies
.supplies["Speed Boost"]
//responds with user's usages of Speed Boosts
.supplies["Double Armor"]
//responds with user's usages of Double Armors
.supplies["Repair Kit"]
//responds with user's usages of Repair Kits
.supplies["Double Damage"]
//responds with user's usages of Double Damages
.supplies["Gold box"]
//responds with user's usages of Gold boxes
.supplies.Mine
//responds with user's usages of Mines
.supplies.Battery
//responds with user's usages of Batteries
.supplies.totalUsages
//responds with user's total amount of usages
Weekly Ratings
Experience
.rating.experience.position.now
//responds with user's current position
.rating.experience.position.before
//responds with user's previous position
.rating.experience.value.now
//responds with user's current value
.rating.experience.value.before
//responds with user's previous value
.rating.experience.value.arrow
//responds with user's up or down arrow, depending on their previous and current ratings
Gold Boxes
.rating.golds.position.now
//responds with user's current position
.rating.golds.position.before
//responds with user's previous position
.rating.golds.value.now
//responds with user's current value
.rating.golds.value.before
//responds with user's previous value
.rating.golds.value.arrow
//responds with user's up or down arrow, depending on their previous and current ratings
Crystals
.rating.crystals.position.now
//responds with user's current position
.rating.crystals.position.before
//responds with user's previous position
.rating.crystals.value.now
//responds with user's current value
.rating.crystals.value.before
//responds with user's previous value
.rating.crystals.value.arrow
//responds with user's up or down arrow, depending on their previous and current ratings
Efficiency
.rating.efficiency.position.now
//responds with user's current position
.rating.efficiency.value.now
//responds with user's current value