@unfunco/ts-sportmonks
v0.2.2
Published
Sportmonks API client library for TypeScript.
Downloads
4
Maintainers
Readme
🧘🏽♂️ Sportmonks API client
Sportmonks API client library written in TypeScript. It's nowhere near ready for production usage yet, it's very buggy and has no error handling, and only implements a subset of the available endpoints in the soccer API, other sports are not yet supported. It's very much a prototype and an experiment with TypeScript's type-system.
Getting started
Requirements
- Node.js 16+
- Sportmonks credentials
Installation and usage
npm install @unfunco/ts-sportmonks
import { SoccerClient } from '@unfunco/ts-sportmonks'
void (async () => {
const soccer = new SoccerClient({ apiToken: 'secret-api-token' })
const scores = await soccer.get('/livescores')
// ...
})()
License
© 2022 Daniel Morris
Made available under the terms of the Apache License 2.0.