boilermaker-ben / Google-Sheets-NFL-Pick-Ems-and-Survivor-Pool

A single long script to paste into the Google Sheets script editor that generates weekly Google Forms and weekly, overall, and other sheets for running a pick 'ems and/or survivor pool. Hosted by you. Free to use for friends and family.
Apache License 2.0
11 stars 1 forks source link

API not working. #10

Open NadlesKVs opened 3 weeks ago

NadlesKVs commented 3 weeks ago

Change

let obj = JSON.parse(UrlFetchApp.fetch('https://fantasy.espn.com/apis/v3/games/ffl/seasons/' + year + '?view=proTeamSchedules').getContentText());

to this

let obj = JSON.parse(UrlFetchApp.fetch('https://lm-api-reads.fantasy.espn.com/apis/v3/games/ffl/seasons/' + year + '?view=proTeamSchedules').getContentText());

Appears to work.

boilermaker-ben commented 3 weeks ago

There's a very big update I just did and overwrote the original single massive JavaScript file. Make a copy of the Google Sheet and see how it goes!