Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
This gem uses the YAHOO Sports API to retrieve stats for NBA players
Add this line to your application's Gemfile:
gem 'yahoo_nba'
And then execute:
$ bundle
Or install it yourself as:
$ gem install yahoo_nba
This gem assists in retrieving player keys and player stats using the Yahoo Sports API.
require 'yahoo_nba'
query = YahooNba::Query.new 'your_consumer_key', 'your_consumer_secret'
(to obtain a key, go to http://developer.yahoo.com/)
To get a hash with all the player keys:
player_keys_hash = query.get_all_player_keys_hash
The hash will be in the format:
{"Player Name"=>"key123", "Player2 Name"=> "key234"}
To get nba player stats:
query.get_players_stats_hash_using(player_keys_hash)
To get an invidual player's stats:
query.get_player_stats_hash_with_player_name("LeBron James")
The hash will be in the format returned by the Yahoo Sports API.
Note: There will be a request to the Yahoo API for each player so it will take a while to get the stats for all the players.
For more information see: http://developer.yahoo.com/fantasysports/guide/
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that yahoo_nba 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.