1.0.2 • Published 6 years ago

awesome-fortnite-api v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

awesome-fortnite-api

A Node.js wrapper of fortniteapi.com

Installation

npm install awesome-fortnite-api --save

yarn add awesome-fortnite-api

Usage

Javascript

const  ForniteClient  =  require("awesome-fortnite-api").ForniteClient;

const  client  =  new  ForniteClient();

client.setKey(process.env.FORTNITE_APIKEY);

client.user.id("Ninja").then(res  =>  console.log(res));
Output should be '4735ce9132924caf8a5b17789b40f79c'

TypeScript

import { ForniteClient } from  'awesome-fortnite-api';

const  client  =  new  ForniteClient();

client.setKey(process.env.FORTNITE_APIKEY);

client.user.id("Ninja").then(res  =>  console.log(res));
Output should be '4735ce9132924caf8a5b17789b40f79c'

Methods

client.checkStatus()

client.getChallenges(FortniteSeason.CURRENT, FortniteLanguage.EN)

client.user.id(username)

client.user.getUserPlatforms(username)

client.user.getUserStats(user_id)

Test

npm run test
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago