1.2.2 • Published 4 years ago
ffe-api v1.2.2
ffe-api
This api is made to interact with the FFE (Fédération Française des échecs) website.
It is written in typescript and each method is typed.
installation
With npm
npm install ffe-apiWith yarn
yarn add ffe-apiUsage
Methods
- fetchDayEvents
- fetchMonthEvents
- fetchEventDetails
- fetchPlayer
Example
import api from 'ffe-api'
const main = async () => {
const events = await api.fetchDayEvents(3, 10, 2020);
console.log(events);
const eventDetails = await api.fetchEventDetails(events[0]);
console.log(eventDetails);
const player = await api.fetchPlayer("Fabrice", "Moracchini");
console.log(player);
}Contribute
If you have any issues or want new feature feel free to create an issue.