fortnite-api-manager

1.1.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i fortnite-api-manager

Weekly Downloads

0

Version

1.1.2

License

ISC

Unpacked Size

8.14 kB

Total Files

8

Last publish

Collaborators

  • vanxh