Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yahoo-fantasy-without-auth

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yahoo-fantasy-without-auth

NodeJS wrapper for the Yahoo! Fantasy Sports API. Needed to implement Yahoo OAuth 2.0 flows in your own app

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
increased by220%
Maintainers
1
Weekly downloads
 
Created
Source

Notice

This repository was forked from whatadewitt/yfsapi. I would like to use the Yahoo Fantasy Sports API with the Yahoo OAuth 2.0, but yfsapi contains the Yahoo OAuth 1.0 flows internally. So I removed them from yfsapi. If you have the aim to use this module, yahoo-fantasy-without-auth, you must implement the Yahoo OAuth 2.0 flows in your own NodeJS app and handle the refresh token on session expired. This module needs your access token only.

Installation

$ npm install yahoo-fantasy-without-auth

How to use

var FantasySports = require('yahoo-fantasy-without-auth');

var yf = new FantasySports();

// Set your access token given by Yahoo OAuth 2.0.
yf.setUserToken(ACCESS_TOKEN_GIVEN_BY_YAHOO);

// query a resource/subresource.
yf.{resource}.{subresource} (
  {possible argument(s)},
  function cb(err, data) {
    // handle error
    // callback function
    // do your thing
  }
);

Refer to api.md if you would like to know APIs in detail.

License

This module is available under the MIT License.

Sample

Refer to yfsapi-oauth2-test-sandbox.

Changed logs

1.0.2
  • Merged with yfsapi v1.0.2.
0.5.0
  • Merged with yfsapi v0.5.0.
0.3.2
  • Implement transactions' add/drop player APIs.
  • Create api.md for documentation.
0.3.1

Keywords

FAQs

Package last updated on 19 Sep 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc