https://github.com/jonathas/hockeytech
Package to access the HockeyTech API
https://github.com/jonathas/hockeytech
hockey hockeytech javascript nodejs npm-package react
Last synced: 9 months ago
JSON representation
Package to access the HockeyTech API
- Host: GitHub
- URL: https://github.com/jonathas/hockeytech
- Owner: jonathas
- License: mit
- Created: 2020-06-20T19:15:55.000Z (about 6 years ago)
- Default Branch: develop
- Last Pushed: 2024-03-28T20:19:37.000Z (over 2 years ago)
- Last Synced: 2025-08-29T21:19:00.563Z (11 months ago)
- Topics: hockey, hockeytech, javascript, nodejs, npm-package, react
- Language: JavaScript
- Homepage:
- Size: 714 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# HockeyTech
This is a package to connect to the [HockeyTech](http://hockeytech.com/) 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
```bash
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.
```javascript
import HockeyTech from 'hockeytech';
const ht = new HockeyTech('4767a11864244441', 'ohl');
ht.getSeasonList()
.then(data => console.log(data))
.catch(err => console.log(err));
```
or
```javascript
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
[Jonathas Ribeiro][0]
## License
MIT
[0]: https://github.com/jonathas