fortnite-api-manager
v1.1.2
Published
Module to make API calls to fortnite
Downloads
20
Readme
Fortnite-Api-Manager
A library to interact with Fortnite services
Installation
using npm
npm i fortnite-api-manager
using yarn
yarn add fortnite-api-manager
Properties
HTTP
client.http; // client's http class
Endpoints
client.endpoints; // client's fortnite endpoints
Tokens
client.tokens; // client's fortnite tokens
Device Auth Credentials
client.accountId; // client's account id
client.deviceId; // client's device id
client.secret; // client's device auth secret
Client Session
client.session; // client's access token
Methods
Get Authorization Code URL
client.getAuthorizationCodeURL(); // returns a url to get authorization code from.
Generate Device Auth with Authorization Code
Get an authorization code from here.
client.generateDeviceAuthWithAuthorizationCode({
authorizationCode: 12345678912345678912345678912312
}); // generate a device auth object from authorization code
Login with Device Auth
client.loginWithDeviceAuth({
accountId,
deviceId,
secret
}); // login in with device auth object
Generate Exchange Code
client.generateExchangeCode(); // generate an exchange code for current logged-in account