|
1 | | -<div align="center"> |
2 | | -<a href="https://npmjs.com/package/fortnite-api-com"><img src="https://img.shields.io/npm/v/fortnite-api-com.svg?style=flat-square"/></a> |
3 | | -<a href="https://discord.gg/AqzEcMm" target="_blank"><img src="https://img.shields.io/badge/dynamic/json.svg?style=flat-square&label=Join%20Fortnite-API&colorB=7289DA&url=https://discordapp.com/api/servers/445203868624748555/embed.json&query=$.members.length&suffix=%20Members%20online&logo=discord" alt="Join Fortnite-API"></a> |
4 | | -<a href="https://github.com/Fortnite-API/nodejs-wrapper/blob/master/LICENSE" target="_blank"><img src="https://img.shields.io/github/license/Fortnite-API/nodejs-wrapper.svg?style=flat-square" alt="License"/></a> |
5 | | - |
6 | | -# NodeJS Wrapper for [Fortnite-API.com](https://fortnite-api.com) |
7 | | -<img src="https://i.imgur.com/38Vs4w5.png" style="max-width:100%;"> |
8 | | - |
9 | | -## Installation |
10 | | -` |
11 | | -npm i fortnite-api-com --save |
12 | | -` |
13 | | - |
14 | | -## Example |
15 | | - |
16 | | -</div> |
17 | | - |
18 | | -```javascript |
19 | | -const FortniteAPI = require("fortnite-api-com"); |
20 | | -const config = { |
21 | | - apikey: "API-Key", |
22 | | - language: "en" |
23 | | -}; |
24 | | - |
25 | | -var Fortnite = new FortniteAPI(config); |
26 | | - |
27 | | -Fortnite.Shop() |
28 | | -.then(res => { |
29 | | - console.log(res); |
30 | | -}).catch(err => { |
31 | | - console.log(err); |
32 | | -}); |
33 | | -``` |
34 | | -<div align="center"> |
35 | | - |
36 | | -## Wiki |
37 | | - |
38 | | -<a href="https://github.com/Fortnite-API/nodejs-wrapper/wiki">Read the docs</a> |
39 | | - |
40 | | -## Contribute |
41 | | - |
42 | | -if you can provide any help, may it only be spell checking please contribute! |
43 | | - |
44 | | -We are open for any contribution. |
45 | | - |
46 | | -## License |
47 | | - |
48 | | -Fortnite-API (MIT) [License](https://github.com/Fortnite-API/nodejs-wrapper/blob/master/LICENSE "MIT License") |
49 | | - |
50 | | -API developed by [Fortnite-API.com](https://fortnite-api.com/about). |
51 | | -</div> |
| 1 | +<div align="center"> |
| 2 | +<a href="https://npmjs.com/package/fortnite-api-com"><img src="https://img.shields.io/npm/v/fortnite-api-com.svg?style=flat-square"/></a> |
| 3 | +<a href="https://discord.gg/AqzEcMm" target="_blank"><img src="https://img.shields.io/badge/dynamic/json.svg?style=flat-square&label=Join%20Fortnite-API&colorB=7289DA&url=https://discordapp.com/api/servers/445203868624748555/embed.json&query=$.members.length&suffix=%20Members%20online&logo=discord" alt="Join Fortnite-API"></a> |
| 4 | +<a href="https://github.com/Fortnite-API/nodejs-wrapper/blob/master/LICENSE" target="_blank"><img src="https://img.shields.io/github/license/Fortnite-API/nodejs-wrapper.svg?style=flat-square" alt="License"/></a> |
| 5 | + |
| 6 | +# NodeJS Wrapper for [Fortnite-API.com](https://fortnite-api.com) |
| 7 | +<img src="https://i.imgur.com/38Vs4w5.png" style="max-width:100%;"> |
| 8 | + |
| 9 | +## Installation |
| 10 | +` |
| 11 | +npm i fortnite-api-com --save |
| 12 | +` |
| 13 | + |
| 14 | +## Example |
| 15 | + |
| 16 | +</div> |
| 17 | + |
| 18 | +```javascript |
| 19 | +const FortniteAPI = require("fortnite-api-com"); |
| 20 | +const config = { |
| 21 | + apikey: "API-Key", |
| 22 | + language: "en", |
| 23 | + debug: true |
| 24 | +}; |
| 25 | + |
| 26 | +var Fortnite = new FortniteAPI(config); |
| 27 | + |
| 28 | +Fortnite.AES() |
| 29 | +.then(res => { |
| 30 | + console.log(res); |
| 31 | +}).catch(err => { |
| 32 | + console.log(err); |
| 33 | +}); |
| 34 | +``` |
| 35 | +<div align="center"> |
| 36 | + |
| 37 | +## Wiki |
| 38 | + |
| 39 | +<a href="https://github.com/Fortnite-API/nodejs-wrapper/wiki">Read the docs</a> |
| 40 | + |
| 41 | +## Contribute |
| 42 | + |
| 43 | +if you can provide any help, may it only be spell checking please contribute! |
| 44 | + |
| 45 | +We are open for any contribution. |
| 46 | + |
| 47 | +## License |
| 48 | + |
| 49 | +Fortnite-API (MIT) [License](https://github.com/Fortnite-API/nodejs-wrapper/blob/master/LICENSE "MIT License") |
| 50 | + |
| 51 | +API developed by [Fortnite-API.com](https://fortnite-api.com/about). |
| 52 | +</div> |
0 commit comments