UNPKG

brawlhalla-stats-api

Version:

A library for working with brawlhalla api without the need to have an official api_key.Created to simplify sending requests to stats.brawlhalla.fr.

16 lines (15 loc) 461 B
const axios = require('axios'); const { defurl } = require('../configuration/config'); const update_clan = (clanid) => { const updateClanUrl = `${defurl}updatec?name=${clanid}`; return axios.get(updateClanUrl) .then(response => { console.log('Response', response.data); return response.data; }) .catch(error => { console.error('Update error:', error); throw error; }); }; module.exports = update_clan;