1.4.2 • Published 1 month ago
hockeytech v1.4.2
HockeyTech
This is a package to connect to the HockeyTech API.
It can be used in Node.js and fronted projects.
Introduction
HockeyTech is a worldwide leader in providing hockey-related technologies, analytics and information services.
Dependencies
- axios
Installation
yarn add hockeytech
Usage
Inform the key, the client code, a language code ('en' or 'fr') and optionally a proxy base url when creating a new object. The proxy is necessary in development, as the HockeyTech API doesn't allow localhost access.
import HockeyTech from 'hockeytech';
const ht = new HockeyTech('4767a11864244441', 'ohl');
ht.getSeasonList()
.then(data => console.log(data))
.catch(err => console.log(err));
or
import HockeyTech from 'hockeytech';
const ht = new HockeyTech('4767a11864244441', 'ohl', 'en', 'http://localhost:3001/proxy?url=');
ht.getSeasonList()
.then(data => console.log(data))
.catch(err => console.log(err));
Maintainer
License
MIT
1.4.2
1 month ago
1.4.1
4 months ago
1.4.0
4 months ago
1.3.0
4 months ago
1.2.10
1 year ago
1.2.11
1 year ago
1.2.9
1 year ago
1.2.8
2 years ago
1.2.7
3 years ago
1.2.6
3 years ago
1.2.5
3 years ago
1.2.4
3 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.0
4 years ago
1.2.1
4 years ago
1.1.0
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago