
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
hockeystreams
Advanced tools
__ __ __
/ /_ ____ _____/ /_____ __ _______/ /_________ ____ _____ ___ _____
/ __ \/ __ \/ ___/ //_/ _ \/ / / / ___/ __/ ___/ _ \/ __ `/ __ `__ \/ ___/
/ / / / /_/ / /__/ ,< / __/ /_/ (__ ) /_/ / / __/ /_/ / / / / / (__ )
/_/ /_/\____/\___/_/|_|\___/\__, /____/\__/_/ \___/\__,_/_/ /_/ /_/____/
/____/
A node.js wrapper for the HockeySteams API.
npm i --save hockeystreams
The HockeyStreams API requires an API Key which can be obtained here.
init
login
getLive
getLiveStream
getLocations
getOnDemandDates
getOnDemand
getOnDemandStream
getHighlights
getCondensedGames
listTeams
scores
Initializes the HockeyStreams API wrapper. The methods returned will depend on which keys are passed as options.
NOTE: Keys can be obtained on the HockeyStreams API page.
Arguments
options
- An Object containing key
and/or scores_key
.Examples
var HS = require('hockeystreams').init({
key: 'YOUR HOCKEYSTREAMS API KEY',
scores_key: 'YOUR HOCKEYSTREAMS SCORES API KEY'
});
Authenticates a user, and returns their membership status, as well as a authentication token to use for retrieving the rest of the resources.
Arguments
options
- An Object containing username
and password
.callback
- A Function with error
and response
arguments.Examples
HS.login({
username: 'USERS USERNAME',
password: 'USERS PASSWORD'
}, function(err, res){
// Do your thing
});
Retrieve a list of live streams.
Arguments
options
- An Object containing a user token
and optionally a date
.callback
- A Function with error
and response
arguments.Examples
HS.getLive({
date: 'MM/DD/YYY', // => Optional
token: 'USER TOKEN' // => Retrieved from login method
}, function(err, res){
// Do your thing
});
Retrieve a specific live stream, with sources (iStream, WMV and Flash).
Arguments
options
- An Object containing an live game id
, a user token
and optionally a location
.callback
- A Function with error
and response
arguments.Examples
HS.getLiveStream({
id: '12345', // => Required
location: 'North America - East Canada', // => Optional
token: 'USER TOKEN' // => Retrieved from login method
}, function(err, res){
// Do your thing
});
Retrieve a list of availalbe streaming locations for live streams.
Arguments
callback
- A Function with error
and response
arguments.Examples
HS.getLocations(function(err, res){
// Do your thing
});
Retrieve a list of dates where on demand feeds are available.
Arguments
options
- An Object containing a user token
.callback
- A Function with error
and response
arguments.Examples
HS.getOnDemandDates({
token: 'USER TOKEN' // => Retrieved from login method
}, function(err, res){
// Do your thing
});
Retrieve a list of on demand streams.
Arguments
options
- An Object containing a user token
and optionally a date
and/or a team
.callback
- A Function with error
and response
arguments.Examples
HS.getOnDemand({
date: 'MM/DD/YYYY', // => Optional
team: 'Ottawa Senators', // => Optional
token: 'USER TOKEN' // => Retrieved from login method
}, function(err, res){
// Do your thing
});
Retrieve a specific on demand stream, with sources (iStream, WMV and Flash).
Arguments
options
- An Object containing an on-demand id
, a user token
and optionally a location
.callback
- A Function with error
and response
arguments.Examples
HS.getOnDemandStream({
id: '12345', // => Required
location: 'North America - East Canada', // => Optional
token: 'USER TOKEN' // => Retrieved from login method
}, function(err, res){
// Do your thing
});
Retrieve a list of highlights.
Arguments
options
- An Object containing a user token
and optionally a date
and/or a team
.callback
- A Function with error
and response
arguments.Examples
HS.getHighlights({
date: 'MM/DD/YYYY', // => Optional
team: 'Ottawa Senators', // => Optional
token: 'USER TOKEN' // => Retrieved from login method
}, function(err, res){
// Do your thing
});
Retrieve a list of condensed games.
Arguments
options
- An Object containing a user token
and optionally a date
and/or a team
.callback
- A Function with error
and response
arguments.Examples
HS.getCondensedGames({
date: 'MM/DD/YYYY', // => Optional
team: 'Ottawa Senators', // => Optional
token: 'USER TOKEN' // => Retrieved from login method
}, function(err, res){
// Do your thing
});
Get a list of all previous live or on-demand teams.
Arguments
options
- An Object containing a user token
and optionally a league
.callback
- A Function with error
and response
arguments.Examples
HS.listTeams({
league: 'NHL', // => Optional
token: 'USER TOKEN' // => Retrieved from login method
}, function(err, res){
// Do your thing
});
Scores API.
Arguments
options
- An Object containing a scores api key
and optionally a date
and/or event
.callback
- A Function with error
and response
arguments.Examples
HS.scores({
date: 'MM/DD/YYYY', // => Optional
'event': 'NHL' // => Optional
}, function(err, res){
// Do your thing
});
FAQs
A node.js wrapper for the HockeySteams API.
The npm package hockeystreams receives a total of 0 weekly downloads. As such, hockeystreams popularity was classified as not popular.
We found that hockeystreams demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.