hockeytech
TypeScript icon, indicating that this package has built-in type declarations

1.4.2 • Public • Published

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

Jonathas Ribeiro

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.4.25latest

Version History

VersionDownloads (Last 7 Days)Published
1.4.25
1.4.11
1.4.00
1.3.00
1.2.110
1.2.100
1.2.90
1.2.80
1.2.70
1.2.60
1.2.50
1.2.41
1.2.30
1.2.20
1.2.10
1.2.00
1.1.00
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i hockeytech

Weekly Downloads

7

Version

1.4.2

License

MIT

Unpacked Size

61.4 kB

Total Files

5

Last publish

Collaborators

  • jonathas