NodeJS sample app for Yahoo OAuth 2.0 + yfsapi-without-auth
This is a NodeJS sample application which uses Yahoo OAuth 2.0 and yfsapi-without-auth, to access Yahoo Fantasy Sports API easily. I've created a customized version of sahat/yahoo-oauth2-tutorial. To keep it simple, I tested yfsapi's user.games API only. You can experience it on my sandbox site. If you would like to test it locally, please follow next steps.
This application was tested on Ubuntu 15.10.
Go to https://developer.apps.yahoo.com and create new Yahoo app.
- Application Name : anyone you want
- Application Type : Web Application
- Callback Domain :
myapp.com
- API Permissions : Fantasy Sports [Read/Write]
Record your application's Client ID(Consumer Key) and Client Secret(Consumer Secret) given by Yahoo.
$ npm install
$ sudo vi /ets/hosts
Add `127.0.0.1 myapp.com`.
module.exports = {
'APP_CLIENT_ID': 'YOUR_CLIENT_ID_HERE',
'APP_CLIENT_SECRET': 'YOUR_CLIENT_SECRET_HERE'
}
$ sudo node server.js
This module is available under the MIT License.