mkreiser / ESPN-Fantasy-Football-API

Connect to ESPN's fantasy football API via this JS API client for web and NodeJS. Available as an npm package.
http://espn-fantasy-football-api.s3-website.us-east-2.amazonaws.com/
GNU Lesser General Public License v3.0
296 stars 74 forks source link

Include current team name in team.js response map #228

Closed CarolinaGuy89 closed 9 months ago

CarolinaGuy89 commented 9 months ago

fixes #227 by adding:

teamName: 'name',

raw data using URL provided in #227 with different league ID now appears as such: In the following data, initial team name at season start was Team Cruise, however the user changed their team name later to Backyard Brews. Current Team name is desired per issue.

.... "teams": [ { "abbrev": "Brew", "currentProjectedRank": 5, "divisionId": 0, "draftDayProjectedRank": 1, "draftStrategy": {}, "id": 1, "isActive": false, "location": "Team", "logo": "https://g.espncdn.com/lm-static/logo-packs/ffl/AtTheStadium-RobbHarskamp/At_The_Stadium_16.svg", "logoType": "VECTOR", "name": "Backyard Brews", "nickname": "Cruise", ....

verified by directly modifying node-dev.js in local project

mkreiser commented 9 months ago

Fixed in #229