jake-ruston / fortnite-api-wrapper Goto Github PK
View Code? Open in Web Editor NEWA simple, easy to use module for interacting with the FortniteTracker API.
Home Page: https://www.npmjs.com/package/fortnite
A simple, easy to use module for interacting with the FortniteTracker API.
Home Page: https://www.npmjs.com/package/fortnite
Wrong README
In the src/user.js .toLowerCase() was undefined, so I tried to remove that... but then .map was also undefined, so i tried to remove that but then the rest of it was then not a function.... help?
https://gyazo.com/54ac47cc435eee9de77c11305074b570
ERROR: https://gyazo.com/31d43a56e06e7d0d9f7213f7b9aba750
getting 403 forbidden when trying to get info from api
const FortniteAPI = require('fortnite');
const Fortnite = new FortniteAPI('key');
Fortnite.get('user', 'pc').then(console.log);
Fortnite.get is not a function
Hey there, I'm from @F0rtnite and we'd love to have your package under the community name! Of course, you would still have push access and such but it would be viewed more. Let me know if you are interested!
My script:
const fortnite = require('fortnite');
fortnite('NickCannonn', 'pc').then((data) => {
console.log(data);
});
Error:
/Users/Meldiron/Desktop/fornite/node_modules/fortnite/src/Client.js:14
return new Promise(async (resolve, reject) => {
^
SyntaxError: Unexpected token (
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/Meldiron/Desktop/fornite/node_modules/fortnite/index.js:1:80)
NodeJS version: v6.10.3
NPM version: 5.5.1
Fornite (your library) version: ^2.0.1
return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));
^
FetchError: invalid json response body at https://api.fortnitetracker.com/v1/profile/platform%20[pc,%20xbl,%20psn]/ninja reason: Unexpected token < in JSON at position 1
at /home/mrtuxa/Documents/fortnite/node_modules/node-fetch/lib/index.js:273:32
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Client.user (/home/mrtuxa/Documents/fortnite/node_modules/fortnite/src/Client.js:37:18) {
type: 'invalid-json'
}
Node.js v17.8.0
Hi, I don't know if this is where I put this message, but I need help. I'm making a Discord bot and I'd love to use your package. But, how do I access the data individually? Could you make the results of "fortnite.user" into a variable and use objects to reference them? For example, "data.stats.solo.kills" could reference the amount of solo kills the given user has. If this is already a thing, please tell me how to reference in my code. If you need further information, please tell me and I'll get you anything you need to know.
Since fortnite tracker has stopped the support for v1 stats can you please update the URL to v2 and update the package.
Check fortnite tracker for more info.
I'm trying to log the shop
const FNClient = require('fortnite') const fortnite = new FNClient("apikey")
const Store = fortnite.store()
const Embedsz = new Discord.MessageEmbed()
.setColor('#f47fff')
Store.forEach(el => {
Embedsz.addField(el.name, stripIndents`**- Rarity:** ${el.rarity}
**- Price:** ${el.vbucks} V-Bucks
**- Image:** [Click Me](${el.image})`, true)
});
It simply says `Store.forEach is not a function
Owner of Fortnite tracker here...
Please use our rest api: https://fortnitetracker.com/site-api
thanks!
I have this mistake as long as there are unknown characters
example with this perso 最終学歴ホイ卒4歳子持ち無職DT
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.