1.1.2 • Published 4 years ago

fortnite-api-manager v1.1.2

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
4 years ago

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
1.1.1

4 years ago

1.1.0

4 years ago

1.1.2

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago