This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require("axios"); | |
let endpoint = "https://fortnite-api.com/v2/cosmetics/br"; | |
const search = (searchStr) => (item) => item.name === searchStr; | |
class Cosmetics { | |
async findCosmetic(input) { | |
let results = await axios.get(endpoint); | |
let find = search(input); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// by joe/mix | |
const request = require("request-promise"); | |
module.exports = { | |
/** | |
* Login to an account. | |
* @param {string} email | |
* @param {string} password | |
*/ | |
async authenticate(email, password) { |