0.2.2 ā€¢ Published 2 years ago

@unfunco/ts-sportmonks v0.2.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

šŸ§˜šŸ½ā€ā™‚ļø 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.