whatadewitt / yahoo-fantasy-sports-api

NodeJS wrapper for the Yahoo! Fantasy Sports API
https://yahoo-fantasy-node-docs.vercel.app/
MIT License
200 stars 54 forks source link

user.game_leagues #43

Closed whatadewitt closed 6 years ago

whatadewitt commented 6 years ago

Wrong on the sandbox

Return data is gross... clean up leagues...

{
  "guid": "RYWP7M53IC626MGOX36ZWCM4FA",
  "leagues": [
    {
      "game_key": "378",
      "game_id": "378",
      "name": "Baseball",
      "code": "mlb",
      "type": "full",
      "url": "https://baseball.fantasysports.yahoo.com/b1",
      "season": "2018",
      "is_registration_over": 0,
      "is_game_over": 0,
      "is_offseason": 0,
      "leagues": [
        [
          {
            "league_key": "378.l.2487",
            "league_id": "2487",
            "name": "Freddy Beach Baseball"
          }
        ],
        [
          {
            "league_key": "378.l.42970",
            "league_id": "42970",
            "name": "FKL Baseball - Season XII"
          }
        ]
      ]
    }
  ]
}
whatadewitt commented 6 years ago

(data redacted for cleanliness)