@unfunco/ts-sportmonks
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

🧘🏽‍♂️ 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

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.

Package Sidebar

Install

npm i @unfunco/ts-sportmonks

Weekly Downloads

0

Version

0.2.2

License

Apache-2.0

Unpacked Size

29.2 kB

Total Files

23

Last publish

Collaborators

  • unfunco