1.0.4 • Published 4 years ago
fortnite-api-pr v1.0.4
fortnite-api-pr
fortnite-api-pr is a way to retrieve the power ranking of each player !
Installation
npm i fortnite-api-pr
Usage
Create a Fortnite Tracker API key
const FortniteTracker = require('fortnite-api-pr')
const Fortnite = new FortniteTracker('API Key Fortnite Tracker')
await Fortnite.getPowerRanking('username', 'platform', 'region')
Exemple
const FortniteTracker = require('fortnite-api-pr')
const Fortnite = new FortniteTracker('API Key Fortnite Tracker')
(async () => {
const PowerRankingStats = await Fortnite.getPowerRanking('username', 'platform', 'region')
console.log(PowerRankingStats)
})();
const FortniteTracker = require('fortnite-api-pr')
const Fortnite = new FortniteTracker('API Key Fortnite Tracker')
(async () => {
await Fortnite.getPowerRanking('username', 'platform', 'region').then(PowerRankingStats => {
console.log(PowerRankingStats)
})
})();