Skip to content

kiramishima/awesome-fortnite-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

My Own Implementation of FortniteAPI with NodeJS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published