Jake-Ruston / Fortnite-API-Wrapper

A simple, easy to use module for interacting with the FortniteTracker API.
https://www.npmjs.com/package/fortnite
24 stars 11 forks source link

.get is not a function #8

Closed Xzeni closed 6 years ago

Xzeni commented 6 years ago
const FortniteAPI = require('fortnite');
const Fortnite = new FortniteAPI('key');

Fortnite.get('user', 'pc').then(console.log);

Fortnite.get is not a function

EXtremeExploit commented 6 years ago

try Fortnite.getInfo('user', 'pc')

Jake-Ruston commented 6 years ago

@Xzeni Hi, firstly you need to do FortniteAPI.Client('key'); and also the method is now user, rather than get or getInfo.